answersLogoWhite

0

A loop in computer languages is a set of statements that execute repeatedly, based on some criteria.

In C and C++, the three looping statements are while, do, and for...

while (test-expression) statement;
/* statement executes zero or more times, until test-expression is false, test first */

do statement while (test-expression);
/* statement executes one or more times, until test-expression is false, test last */

for (init-expression, test-expression, loop-expression) statement;
/* init-expression executed once, at beginning */
/* statement executes zero or more times, until test-expression is false, test first */
/* loop-expression evaluated at end of each iteration */

Often, statement, is a set of statements, such as...

while (test-expression) {
... statements
}

User Avatar

Wiki User

16y ago

What else can I help you with?

Trending Questions
Why is your swamp cooler not cooling the air? Why is it a disadvantage for hydraulic systems to have flexible tubes? What impact did Cyrus McCormick's reaper and john Deere's steel plow have on agriculture? What is the term of function in software testing? How do you open Sharper Image U-video camera's battery compartment? Which input combination will produce logic 1 at the output of a 4-input NOR gate? The Bantu were experts in this form of metallurgy? How much does 28 cy yards of concrete weigh? How is faradic stimulation different from electoconvulsive shock? What happen when full wave bridgerectifier is incomplete? Why does your overload relay trip when you put a load on it it is a 30hp motor but as soon as it gos on to delta it trips out right away but be fore it gos on to delta it draws 80amps? How is a stress strain curve obtained? How much heat is generated in 4.50 s when A current of 3.00 Amperes is maintained in a simple circuit with a total resistance of 1.50 ohms? Can the overflow that holds the flapper be removed and replace the rubber gasket under it? What must be the rms voltage rating of the transformer secondary for the voltage doubler that produces an output of 500 v? What is the difference between passing by value and passing by difference? What are the disadvantage of a circuit breaker or a fuse in a circuit? Draw the waveform of AM signal and DSBSC signal? How do you install toilet seat cover dispensers? How many pockets of cement fit in a wheelbarrow?