Printer Friendly
Dictionary, Encyclopedia and Thesaurus - The Free Dictionary
1,806,143,862 visitors served.
forum mailing list For webmasters
?
New: Language forums
Dictionary/
thesaurus
Medical
dictionary
Legal
dictionary
Financial
dictionary
Acronyms
 
Idioms
Encyclopedia
Wikipedia
encyclopedia
?

for loop

   Also found in: Wikipedia 0.03 sec.
(programming)for loop - A loop construct found in many procedural 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

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.


How to thank TFD for its existence? Tell a friend about us, add a link to this page, add the site to iGoogle, or visit webmaster's page for free fun content.
?Page tools
Printer friendly
Cite / link
Email
Feedback
? Mentioned in ? References in periodicals archive
 
SELT and DELT are emerging as the standards for loop qualification and diagnostics, aiding in the elimination of costly external test equipment.
2Wire's loop extender technology integrates an advanced load coil design into the loop extender hardware, enabling us to maintain standard telephone service, which is critical for loops longer than 18,000 feet," said Tower.
This new market for loop management systems has been created by service providers faced with multitudes of subscribers clamoring for inexpensive, guaranteed DSL service.
 
Encyclopedia browser? ? Full browser
 
 
Encyclopedia
?

Disclaimer | Privacy policy | Feedback | Copyright © 2009 Farlex, Inc.
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. Terms of Use.