Tagged: continue statement

The continue Statement in C Language 25

The continue statement in C Language

Let us understand the continue statement in C programming language. continue statement works similar to break statement in C. Instead of terminating the loop statement, it will force next iteration of the loop. continue statement can be used with for loop, while loop and do-while loop. Sometimes there arises a situation where we don’t want to execute the certain statements within the loop but we want to continue the execution of the loop till the condition is satisfied. This can be done using continue statement. Consider the below example, for(i=0;i<10;i++) { /*statement1*/ /*statement2*/ /*statement3*/ /*statement4*/ } Let us suppose, when the...

FREE C Cheatsheet - Speed Up Your C Programming.

FREE C Cheatsheet - Speed Up Your C Programming.

Download a 7-page free cheat sheet for easy and quick access to C Concepts, Snippets, and Syntax.

Thank you! Check you inbox and access your cheat-sheet