◄Up► ◄Contents► ◄Index► ◄Back► ─────C/C++ Language───────────────────────────────────────────────────────── 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: while, break, continue -♦-