Topic : C-Language Documentation Author : John Kormylo Version : C.HYP 1.0 Subject : Documentation/C-Language Nodes : 233 Index Size : 6362 HCP-Version : 3 Compiled on : Atari @charset : atarist @lang : en @default : @help : Help @options : +g -i -s +x +z -t4 @width : 75 View Ref-File[ for ] Syntax: for( <initialization>; <test>; <increment> ) <statement>; for( <initialization>; <test>; <increment> ) { <code> } where <initialization> and <increment> consist of one or more executable statements separated by commas, <test> is a logical expression, <statement> is a single statement and <code> is one or more lines of executable code. <initialization> is executed once at the start. <test> is performed at the start of each iteration. If FALSE (0), iteration stops. <increment> is performed at the end of each iteration. <statement> or <code> are executed until the <test> fails. for(i=0; i<100; i++) a[i] = 0.0; /* zero a[0] through a[99] */ for(i=100, p=a; i--; *(p++) = 0.0); /* p is (float*) */ See also while, do-while and break.