1. goto
2. while-break-continue
3. for-break-continue
4. do-while-break-continue
5. recoursion
differance between control statement and looping statement?
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.
There are 4 different looping statements in Java. They are:While loopDo-While loopFor loopFor Each loop
The former include repetition, the latter don't.
for( ; ; ) { statement_block; } while( conditional_expression ) { statement_block; } do { statement_block; }while( conditional_expression )
All statements must be terminated with a semi-colon in C.
An iterative statement is a looping statement, such as a 'for', 'while', or 'do-while' statement. They cause statements to be repeated (iterated) multiple times.
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.
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}
Looping means you repeat a particular procedure a specified number of times or until a defined condition is met.
Control statements are the statements that control the flow of program execution. For eg: loops: For, While, Do-While, decision making using if-then-else or switch-case and there's goto to transfer control.
for,while,do while