next up previous
Next: Time Delay Loops Up: for Loop Previous: for Loop

The Infinite Loop

You can create a loop that never terminates using this for construct:

for(; ;)
{
sequence of statements }

This loop will run for ever. Although there are some programming tasks, such as operating system command processors, that require an infinite loop, most infinite loops are really just loops with special termination requirements.


Yousef Haik
2/23/1998