in reply to Why is the null while-loop condition expression true?
As a special case, if the test in the "for" loop (or the corresponding "while" loop) is empty, it is treated as true. That is, both for (;;) { ... } and while () { ... } are treated as infinite loops.
|
---|