C Continue Statement

In this tutorial you will learn about the C Continue Statement and its application with practical example.

C Continue Statement

It will give you a way to skip over the current iteration of any loop. When a continuous statement is encountered in a loop, the rest of the statements in the loop body for the current iteration ends and returns the program execution to the very first statement in the loop body. It does not terminate the loop rather continues with the next iteration.

Continue Statement Flow Diagram

c_continue_flow_diagram

Continue Statement Syntax

Below is the general syntax of the continue statement in c programming:

Syntax:-

Continue Statement Example

Below is a simple example to demonstrate the use of the continue statement in c programming:

Example:-

When we run the above C program, we will see the following output –

Output:-

c-continue-statement

As you can see when ctr == 5, the continue statement is executed which causes the current iteration to end, and the control moves on to the next iteration.

In this tutorial we have learn about the C Continue Statement and its application with practical example. I hope you will like this tutorial.