ITERATION IN C According to Google: Iteration is the repetition of a process or utterance. In a programming language Iteration stands for a repeating execution of a set of codes until desired condition is obtained. Iteration is done through Iterative Statements. Iteration is also called Looping, which means doing a work again and again. For better understanding of a loop, here is a Real world filmy example: Remember the climax scene from Dr. Strange (2016) where Dr. Strange goes into space to bargain for Earth’s protection from Dormammu, in order to do so he starts an endless time loop which he won’t stop until dormammu accepts his demands and when Dormammu did so the loop stopped. Iteration works in same way, considering his approach as loop’s condition. There are three Iterative statements which makes Iteration possible: For statements (loops). While statements (loops). Do-while statements (loops). FOR LOOP AND WHILE LOOP: T...
DECISION MAKING IN C When we need to execute a problem in accordance to the condition, in a program, or to check any valid argument in a program, we need a favorable method to execute the program, this is where Decision Making steps in programming. Think of a ROUNDABOUT where, on left lane is your home, on right is your friend's home ,forward is market, and back is hospital, you need to decide on which lane/road you need to move, hence you execute your passage through that lane to reach your destination, decision making works in same way where you get to decide what to do according to desired condition. For example in real world: if you need to go to hospital from roundabout you need to take U-Turn and go thus you make a decision, since you decided to go to hospital, your condition is taking a U-Turn. For example in programming: if you need to print your age when '1' is pressed and or name when '2' is pressed, the condition is to press eith...