Found 1 hit - Term: for loop, Database: *, Strategy: prefix
- [1] : The Free On-line Dictionary of Computing (27 SEP 03)
for loop
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.
for example:
int i;
for i = 0; i < 10; i++
printf"hello\n";
prints "hello" 10 times.
the for loop is an alternative way of writing a while loop
that is convenient because the loop control logic is collected
in a single place. it is also closely related to the repeat
loop.
1999-07-07
see also:
loop imperative c compound statement .. printf"hello\n";
while loop repeat loop
Results 1 - 4 of 4 found about for loop: Loop
>> L Words
Loop, definition of term: Loop
loop_pag1.html Local Loop
>> L Words
Local Loop, definition of term: Local Loop
local+loop_pag1.html Ground Loop
>> G Words
Ground Loop, definition of term: Ground Loop
ground+loop_pag1.html Endless Loop
>> E Words
Endless Loop, definition of term: Endless Loop
endless+loop_pag1.html
Last accessed:2008/10/13 16:54:35 [Total processing time: 0 seconds] |