
Available under Creative Commons-ShareAlike 4.0 International License.
The continue structure is not allowed in good structured programming. The following gives the appearance that the loop will print to the monitor 8 times, but the continue statement causes it not to print number 4.
Example 12.8: C++ source code
for(counter = 0; counter < 8; counter++) { if (counter == 4) { continue; } cout << counter << endl; }
- 1877 reads