{ A destination to learn coding }

Jump Statements

The continue statement

Continue statement is used in loops. It iterates the loop by skipping any codes in between.

See the example
int main()

  for(int i=0; i<10; i++)


  return 0;
Output: 0 1 2 3 4 6 7 8 9

The code above prints 0 to 9 skipping 5. When the value of i is 5, the program control (due to the continue statement), skips any code in between and goes to the conditional expression of the for loop, and the loop continues.

Continue statement can be used in any of the 3 loops.

C Codes