answersLogoWhite

0

Looping statement in c plus plus?

User Avatar

Anonymous

15y ago
Updated: 8/17/2019

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.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

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

differance between control statement and looping statement?


What is looping statement?

What is looping statement?


What are the three looping statement in turbo C?

for,while,do while


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.


What is looping statement in turbo c?

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


What is looping in c plus plus?

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}


What is a while statement in turbo c plus plus?

A while statement is one type of looping statement. by which we can start a loop in our programs. while loop is precondition checking statement, because it first check its condition then loop will go to its body part. EX. while(i>0) { //body part } here when i will >0 then it will check it body part and execute it and display result.


Which statement is not frequently used in C plus plus?

The goto statement.


Is while-wend a looping statement?

Yes.


What is the deffernce of the switch statement and the if statement in c plus plus?

If statement is single selection statement,whereas the switch statement is multiple selective.


How do you use a C-continue statement in a block- without any looping or conditional statements?

In the C language, the continue statement can only be used within a loop (for, while, or do). Upon execution, control transfers to the beginning of the loop.


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 )