An infinite loop
is defined as it runs infinitely without any condition
. It can be broken by defining any
in the body of the statement blocks.
Sometimes infinite loop also called Endless loop. Its having lacks a functional exit so that is repeats indefinitely. Or in other words, it's a loop which will not have a termination. It will continue execution until you break it by defining any breaking logic in the body of the loop.
You can integrate infinite loop as follows:
for( ; ; )
//Breaking logic for loop termination