CS 3304: Comparative Languages
Control Structures
[
Course Documents
] : [
Control Structures
]
Previous
Contents
Next
Keyword Index
C For Loop
Syntax:
for ([expr_1] ; [expr_2] ; [expr_3]) statement
The expressions can be whole statements, or even statement sequences, with the statements separated by commas
The value of a multiple-statement expression is the value of the last statement in the expression
If the second expression is absent, it is an infinite loop