answersLogoWhite

0

Break statements:-its terminates the current while or for loop and continue the program execution from the statement following the terminated.

NOTE:-note that it is wmlscript syntax error to use the break statement outside of while or a for statements.

example;

Breakstatement:

Break;

Continue statement:-this statement terminate execution of a block of statement

in while or for loop and continues execution of loop with the next iteration.

note that the continue statement does not terminate the execution of loop and also is wmlscript syntax error to use the break statement outside of while or a for statements.

-> in while loop, it jumps back to the condition.

-> in for loop,it jumpsto the update expression.

syntax:

continuestatement:

continue;

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

Difference between break function and continue function?

The 'break' command will stop a loop from going any further, where a 'continue' command will start the loop over at the top (or bottom) of the loop, bypassing other instructions that may be in the loop. The 'continue' command will not stop a loop, but a 'break ' command will.Note: these statements aren't commands or functions.


Illustrate the difference between 'break' and 'continue' with an example?

How about "I just took a break and i am about to continue with whatever I'm doing." maybe that's right.


What are all the looping statements in c?

1. goto 2. while-break-continue 3. for-break-continue 4. do-while-break-continue 5. recoursion


What are the differences between Break Continue and Exit?

break - The break statement is used to jump out of loop. After the break statement control passes to the immediate statement after the loop.continue - Using continue we can go to the next iteration in loop.exit - it is used to exit the execution of program.note: break and continue are statements, exit is function.


Why the continue statement not allowed in swicth statements?

'continue' is allowed anywhere in a loop's body. But, sure, it is not synonym of 'break', which is a different statement.


Four basic instruction in C language?

They are 'statements' to speak strictly, they are: , , if, else, while, for, do, return, switch, break, continue, gotoNote: is zero or more statements between '{' and '}'


What is the difference between cut in and break down voltage?

what is the difference between cut- in and cut -out


Why break statement is essential in switch statements?

Because it prevents the flow between cases.


How do you make a program that would display menu of arithmetic choices and have the loop continue until the chooses to quit in c plus plus?

You can accomplish this using do-while loop and switch statement. Here is an example:int choice;do{cout


Derive a regular grammar to describe the syntax of a conventional representation of do-while conditional operator break and continue statements in C programming language?

DO-WHILEdo{ ............ //body ............}while(condition); Condition Operator (Condition ) ? Result if Condition TRUE : Result if Condition FALSE Break <LOOP> { if(condition TRUE) { Break }continue


How many arithmetic statement in c?

Only one: expression. Yes, in C expression is one of the statements. Some other statements are: if, do, goto, while, for, switch, break, continue, return, NULL-statement, compound-statement.


What are different types of control statements available in c?

1. goto, break, continue, return 2. if-else, switch-case-default 3. while, for, do-while