DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
C language compiler

Iteration statements

while

   while (expression)
        statement
This sequence is followed repetitively: expression must have scalar type.

do-while

   do
        statement
   while (expression);
This sequence is followed repetitively: (do-while tests loop at the bottom; while tests loop at the top.)

for

   for (expression1; expression2; expression3)
        statement

Next topic: Jump statements
Previous topic: switch

© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003