February 2014
Beginner
1248 pages
62h 25m
English
The break statement, when executed in a while, for, do...while or switch, causes immediate exit from that statement. Execution continues with the first statement after the control statement. Common uses of the break statement are to escape early from a loop or to skip the remainder of a switch (as in Fig. 5.9). Figure 5.13 demonstrates a break statement exiting a for.
Read now
Unlock full access