What is the use of goto statement with the help of an example.
Answers
Answered by
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
2
Answer:
I don't know but marks me Brainlist
Similar questions
Social Sciences,
2 months ago
Psychology,
2 months ago
English,
2 months ago
History,
4 months ago
Physics,
4 months ago
Hindi,
10 months ago
Hindi,
10 months ago