Infinite Loops
Learn about infinite loops, its examples and their use cases.
As already seen, a 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. This could be because the the loop variable is modified in a manner that the exit condition is never met.
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 ...