Search in: Word
Vietnamese keyboard: Off
Virtual keyboard: Show
Computing (FOLDOC) dictionary
for loop
Jump to user comments
programming A loop construct found in many imperative
programming languages which repeatedly executes some
instructions while a condition is true.
In C, the for loop is written in the form;
for (INITIALISATION; CONDITION; AFTER)
STATEMENT;
where INITIALISATION is an expression that is evaluated once
before the loop, CONDITION is evaluated before each iteration
and the loop exits if it is false, AFTER is evaluated after
each iteration, and STATEMENT is any statement including a
compound statement within braces ".." that is executed if
CONDITION is true.