Control Flow: Selection and Loops
Control-flow statements decide which statement runs next. C has selection statements (if, if-else, switch), iteration statements (while, do-while, for) and jump statements (break, continue, goto, return).
Programming in C · topic
if and else pairing, switch entry and fall-through, while, do-while and for loops, counting iterations, break, continue and goto, and loops that never end because of unsigned or floating counters.
Control-flow statements decide which statement runs next. C has selection statements (if, if-else, switch), iteration statements (while, do-while, for) and jump statements (break, continue, goto, return).
One-page visual sheets for this topic, in the sheet library on the store. Previews are free; the full sheets come with the subject pack.