What is an infinite Loop? How is infinite loop declared?

Asked 20-Dec-2017
Viewed 1444 times

1 Answer


1

An infinite loop is defined as it runs infinitely without any condition. It can be broken by defining any breaking logic 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( ; ; )

{
//Loop body
//Breaking logic for loop termination
}
Hope it's informative...