go to statement in C
Generally all the statements inside the C program executed
in sequence.However decision making statement allows us to control
the execution of statements based on some condition. Syntax
goto label; Here,label indicates the point at which control of the program is transfered. Label can be specified anywhere in
the main (). Example Read: printf("Enter Number"); scanf("%d",&n); if (n%2==0) goto Read; else printf("%d",n); |
||||||