continue statement in c with example

Continue statement tell the compiler to skip the following statement and continue with the next iteration

Syntax:-

continue;

Continue statement in for loop

Here continue causes the control to go to increment section(3rd section in for loop) of the loop than condition statement(2nd section in for loop).

Example:-

c program for display even number using continue statement



Continue statement in while and do while loop

Here continue causes the control to go to condition statement of loop.

Example:-

c program display odd number using continue statement



Previous Code:-
else if statement

List Code:-
C Codes

Next Code:-
for loop

C Programs
List of c Programs

2 Comments

  1. its really very helpful to design my coding modules. keep update.
    JAVA TRAINING

    ReplyDelete
  2. The continue statement in C programming language is used to skip some statements inside the body of the C for and while loop and continues the next iteration of the loop.

    ReplyDelete

Add your comments here

Back to Top