Continue statement
This statement can be used only inside looping structures. Normally the next repetition of a loop begins only after executing all the statements within the loop.Using continue statement, we can initiate an early repetition of a loop, that means, because of continue statement, the control will be transferred to begin the next repetition by skipping all the statements after continue within the loop. In for loop, the control will be transferred to the increment/decrement part. In a while and do-while, the control will be transferred to condition.
For e.g. for (i=1;i<=22; i++) //to here
{ ………
………
if (i ==12)
continue; //The control is transferred
………
………
}
//Next statement
Similarly in while and do-while.
CACKLE comment system