explain go to loop statement with example
Answers
Answered by
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
Science,
1 month ago
Hindi,
2 months ago
Science,
2 months ago
Art,
9 months ago
Social Sciences,
9 months ago