0
5.6kviews
Explain following statement with example, (i) goto (ii) continue
1 Answer
0
319views

A goto statement in C programming provides an unconditional jump from the 'goto' to a labeled statement in the same function.

Syntax

goto label;
..
.
label: statement;

Example

goto label;

printf (“Hey”);

label: printf(“Bye”);

Output

Bye

The first printf statement wasn’t read as the goto statement caused the compiler …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.