why do we use GOTO statement ?
Answers
Answer:
it is used to make jumps in a program
here is your answer mate
1)The goto statement is a jump statement which is sometimes also referred to as unconditional jump statement. The goto statement can be used to jump from anywhere to anywhere within a function.
2)goto statement in C. ... NOTE − Use of goto statement is highly discouraged in any programming language because it makes difficult to trace the control flow of a program, making the program hard to understand and hard to modify. Any program that uses a goto can be rewritten to avoid them.
3)GoTo (goto, GOTO, GO TO or other case combinations, depending on the programming language) is a statement found in many computer programming languages. It performs a one-way transfer of control to another line of code; in contrast a function call normally returns control.
4)The problem with using goto statements is that it is easy to develop program logic that is very difficult to understand, even for the original author of the code. It is easy to get caught in an infinite loop if the goto point is above the goto call.
i hope it helpfull to you...