explain goto statement with an example.
Answers
Answered by
8
hi
The goto statement is rarely used because it makes program confusing, less readable and complex. Also, when this is used, the control of the program won’t be easy to trace, hence it makes testing and debugging difficult.
C – goto statement
When a goto statement is encountered in a C program, the control jumps directly to the label mentioned in the goto stateemnt
Syntax of goto statement in C
goto label_name;
..
..
label_name: C-statements
thnx
Answered by
2
Hope it will help you.
pls Mark as brain list .
pls Mark as brain list .
Attachments:
Similar questions