Computer Science, asked by angelina88, 1 year ago

explain goto statement with an example.

Answers

Answered by Anshul2005b
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 abhisekshaw2001
2
Hope it will help you.
pls Mark as brain list .
Attachments:
Similar questions