Goto Statement in C


The goto statement is a jump statement which is sometimes also referred to as unconditional jump statement. The goto statement can be used to jump from anywhere to anywhere within a function.

Source Code

//goto label
#include<stdio.h>
 
int main()
{
    int i=0;
    joes:
    printf("\n%d",i);//0 1 2 3 4
    i++;//1 2 3 4 5
    if(i!=5)
    {
        goto joes;
    }
    printf("\nEnd");
    return 0;
}
 
To download raw file Click Here

List of Programs


Sample Programs


Switch Case in C


Conditional Operators in C


Goto Statement in C


While Loop Example Programs


Looping Statements in C

For Loop Example Programs


Array Examples in C

One Dimensional Array


Two Dimensional Array in C


String Example Programs in C


Functions Example Programs in C


Learn All in Tamil © Designed & Developed By Tutor Joes