continue statement

Continue statement is on the whole used inner loops. Whenever it is encountered inside a loop, control directly jumps to the beginning of the loop for subsequent generation, skipping the execution of statements inside loop's body for the current iteration.

The syntax of the continue statement is as follows:

continue;    
#include stdio.h;
#include conio.h;
void main()
{  
    int n;  
    for(n = 1; n5; n++)  
    {  
        printf("%d ",n);  
        if(n == 3)  
        continue;  
    }  
    printf("%d \n",n);  
    getch();
}  

Output

1 
2
4
5