goto statement

 #include <stdio.h>

int main()
{
    label:
        printf("hello harish\n");
        goto end;
    goto label;
    end:
        printf("hi");
   
    return 0;
}
// goto statement is used to transfer program control to a predefined label

Comments

Popular posts from this blog

Tokens in C

Steps taken by a compiler to execute a C program

Variables and Data Types in C