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

1 votes
236 views
Aarav Maurya asked 20-Dec-2017 in Technology by Aarav Maurya

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

1 Answer

1 votes
Harsh kumar srivastava answered 20-Dec-2017 by Harsh kumar srivastava
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...