Tagged: learn c continue

The continue Statement in C Language 25

The continue Statement in C Language

Let us understand the continue statement in C programming language. 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 in C language. Consider the below example,

Let us suppose that, when the value of i equals to 5 we want to skip the execution of statement3 and statement4. Then, we can use the continue statement in C to perform the above task as follows.

Here, when value of...