Computer Science, asked by cool4361, 5 months ago

3. An unconditional GOTO sets up an infinite loop. Explain with an example.

Answers

Answered by RaazAnishek
2

Answer:

An infinite loop occurs when a condition always evaluates to true. Usually, this is an error. For example, you might have a loop that decrements until it reaches 0. ... This is a silly example, but it's common for infinite loops to accidentally occur.

Answered by astham707
0

Answer:

A GOTO statement directs the control to transfer the desired label to set up a loop. An unconditional transfer of control sets up an infinite loop, from where there is no exit. Here, after the value of A is incremented, the control transfers to the label unconditionally. So, this GOTO sets up an infinite loop.

Similar questions