C continue statement

1. What is the use of continue statement in C?

The continue statement in C is used in loops to skip the current iteration and move on to the next iteration without executing the statements below the continue in the loop body.

2. What type of statements are break and continue?

The break and continue in C are jump statements that are used to alter the flow of the normal execution of the loops.



Continue Statement in C

The continue statement in C is a jump statement that is used to bring the program control to the start of the loop. We can use the continue statement in the while loop, for loop, or do..while loop to alter the normal flow of the program execution. Unlike break, it cannot be used with a C switch case.

Similar Reads

What is continue in C?

The C continue statement resets program control to the beginning of the loop when encountered. As a result, the current iteration of the loop gets skipped and the control moves on to the next iteration. Statements after the continue statement in the loop are not executed....

Syntax of continue in C

The syntax of continue is just the continue keyword placed wherever we want in the loop body....

Use of continue in C

The continue statement in C can be used in any kind of loop to skip the current iteration. In C, we can use it in the following types of loops:...

Example of continue in C

Example 1: C Program to use continue statement in a single loop....

How continue statement works?

...

Flowchart of continue in C

...

C break and continue Statement Differences

Working of C continue in for Loop...

Conclusion

Flowchart of the continue Statement in C...

FAQs on C continue statement

break statement: By using break statement, we terminate the smallest enclosing loop (e.g, a while, do-while, for, or switch statement). continue statement: By using the continue statement, the loop statement is skipped and the next iteration takes place instead of the one prior....