C Language and Libraries Help (clang.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
for
                                             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
                                    -♦-