Cheat sheet

PCC-08Cheat sheet1 pageIn a paid pack

Control Flow: Selection, Loops and Jumps

if and else pairing (dangling else), switch rules with fall-through and a default placed in the middle, while, do-while and for loops compared, formulas for counting loop iterations, break and continue (including continue inside a switch inside a loop), goto to leave nested loops, loops that never end because of an unsigned or floating counter, and the solved GATE CS 2025 Set 2 Q.33 subtraction loop.