You are here

continue

6 February, 2015 - 16:28

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;  }