posted 16 years ago
A bit more elaborate:
A for loop header has three parts: the initializer, the condition and the increment. The loop will first execute the initializer part, and then while the condition returns true it will execute the loop body, then the increment.
In this example there is no initializer, no increment and no condition. If omitted, the condition yields true, so the loop is a synonym for the following: