continue statement breaks the current iteration.
#include<stdio.h> main(){ int i; for(i = 0; i < 11; i++){ if ((i == 4) || (i == 7)) { continue; } printf(" the value of i is %d\n", i); } }
the value of i is 0 the value of i is 1 the value of i is 2 the value of i is 3 the value of i is 5 the value of i is 6 the value of i is 8 the value of i is 9 the value of i is 10
6.10.Continue | ||||
6.10.1. | The continue statement |