Computer Science, asked by karan1111111168, 4 months ago

What is the use of goto statement with the help of an example. ​

Answers

Answered by sriram25807
3

Answer:

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.

Explanation:

For example, one: for (i = 0; i < number; ++i) { test += i; goto two; } two: if (test > 5) { goto three; } ... .. ... Also, the goto statement allows you to do bad stuff such as jump out of the scope.

Answered by pk314247
2

Answer:

I don't know but marks me Brainlist

Similar questions