answersLogoWhite

0

What is looping in c plus plus?

Updated: 8/11/2023
User Avatar

Wiki User

11y ago

Best Answer

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

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

In C++ you can use 'for', 'while', and 'do while' loops, as well as procedural goto statementw to implement more complex loops. Recursion can also be used to implement looping.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Looping is when the same code is running without ending.. The code runs, stops, and is run again(looped). Looping is when the code never stops, unless told too.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is looping in c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Definition of Looping in c and c plus plus?

Looping means you repeat a particular procedure a specified number of times or until a defined condition is met.


Looping statement in c plus plus?

There are several 'looping' statements in C++. They are:while () { }do { } while () ;for (index-start, index-end; index increment/decrement) { }They are used to repetitively execute statements as long as the statement(s) controlling the loop are true.


What is the notation used to place block of statements in a looping structure in C plus plus?

for( ; ; ) { statement_block; } while( conditional_expression ) { statement_block; } do { statement_block; }while( conditional_expression )


What is difference between control statements and looping statements in c language?

differance between control statement and looping statement?


What is an example of for loop using c plus plus?

for (int x = 0; x < 5; x++){cout


What are the three looping statement in turbo C?

for,while,do while


What is looping statement in turbo c?

while, for, do-while (and perhaps goto)


What is looping statement?

What is looping statement?


What is b plus b plus b plus c plus c plus c plus c?

b+b+b+c+c+c+c =3b+4c


What is c plus c plus 2c plus c plus c equal?

c + c + 2c + c + c = 6c


B plus b plus b plus c plus c plus c plus c equals?

b + b + b + c + c + c + c = 3b + 4c


Symplify c plus c plus c plus c?

4c