Could all three parts be omitted from a for?
Answer:
Yes.
End of Chapter
The phrase for( ; ; ) is the same as while( true ).
Sometimes people do this,
although it is not very clear and should be avoided.
Thats all for this chapter. Look at the following topics for a while. Click on a subject for more information.
- Three things that all loops must do.
- Syntax of the
- Top-driven loops.
- Counting downward with a for loop.
- Omitting the change part of a for loop
- Omitting the test part of a for loop
for statement.