for
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Keyword: for
Syntax: for( [init-expr]; [cond-expr]; [loop-expr] )
statement
Summary: Executes <statement> repeatedly. First, the initialization
(<init-expr>) is evaluated. Then, while the conditional
expression (<cond-expr>) evaluates to a nonzero value,
<statement> is executed and the loop expression
(<loop-expr>) is evaluated. When <cond-expr> becomes 0,
control passes to the statement following the for loop.
See also: break, continue, do, goto, while
-♦-