goto statement

goto is a jumping statement in c language,which is occasionally also known as unconditional jump declaration. The goto declaration may be used to jump from everywhere to anywhere within a function.

The syntax of the goto statement is as follows:

label:   
....
....
....
goto label;  
#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