CS 3304: Comparative Languages
Control Structures
[
Course Documents
] : [
Control Structures
]
Previous
Contents
Next
Keyword Index
C++ & Java For Loops
Differs from C in two ways:
The control expression can also be Boolean
The initial expression can include variable definitions; scope is from the definition to the end of the body of the loop
Java is the same, except the control expression must be Boolean