March 2018
Beginner to intermediate
416 pages
9h 24m
English
Like break, the continue statement is also used only inside do, while, and for loops. It is used to skip the statements given after the continue keyword inside the loop body and execute the next iteration of the loop. It is useful when we want to skip a statement from getting executed but don't want to break the loop. The usage of the continue statement with a while loop is illustrated in Figure 7.9:

The continue statement does not have any special meaning with the switch...case statement and also no meaning if used outside the loop.
Let's understand the working of the ...
Read now
Unlock full access