Computer Science, asked by aniket2157rathod, 2 months ago

explain go to loop statement with example​

Answers

Answered by Gurmeen26
0

Answer:

Mark as brain list if you got your answer

Example of goto statement

Explanation: In this example, we have a label addition and when the value of i (inside loop) is equal to 5 then we are jumping to this label using goto. This is reason the sum is displaying the sum of numbers till 5 even though the loop is set to run from 0 to 10.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. Syntax: ...

Similar questions