...

/

Infinite Loops

Infinite Loops

In this lesson, an explanation of how infinite loops might emerge in a loop is provided.

Emergence of infinite loops

One common programming mistake is to create an infinite loop. An infinite loop refers to a loop, which under certain valid (or at least plausible) input, will never exit.

Note: Beginning programmers should be careful to examine all the possible inputs into a loop to ensure that for each such set of inputs, there is an exit condition that will eventually be reached.

...