Articles added in Mathematics Lab | Cyber Lab is now open | Astronomy Lab is now open | VLSI Lab is now open | 120 SEO Tips article published | More exciting articles coming soon!




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





Programming Resources
Computer Networking Fundamentals Android Application