answersLogoWhite

0

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.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How can you use the "break" statement in Java to prematurely exit a "for" loop?

In Java, you can use the "break" statement within a "for" loop to exit the loop prematurely. When the "break" statement is encountered, the loop will immediately stop executing and the program will continue with the code after the loop.


What should you do you take the wrong exit on the interstate?

do not stop,continue on to the next exit.


What are the advantages and drawbacks packet-switch based network-on-chip compared to bus-based system-on-chip solutions?

continue, break and exit(0) in c++


How do you get through ice path in Pokemon?

You must face towards the exit to get out. Once in that position, move towards the exit. Continue this to exit the cave.


Who can used to exit from a loop?

If you meant 'what can be used' then it is statement break.


What command is used to exit from the middle of a loop in Scilab?

As in most languages, a break statement is used to exit the nearest enclosing scope, including loops:// Scilab example:// Loop 5 times with a 50% chance of early termination on each iterationfor i=1:5disp (i)if rand (1,1)>0.5 thenbreakendend// break jumps to this point


What statement is used to exit aloop?

break;


How do you get across the ice in the ice cave in Pokemon soul silver?

You need to continue sliding until you are facing the exist. Once you face the exit, press the button to go towards the exit. You will then be on land. You must continue this until you exit the cave.


What is break in c?

The break statement is used to exit a loop or switch-case.


How do you exit once you have read the bones correctly?

Continue through the maze the exit is in the bottom right of the maze just past the scorpion.


How do you exit in nested loop in java?

You may exit a nested loop in Java using a break with a label for the outer loop.


If you break down and have to exit the vehicle exit away from traffic and move off the road in the direction of traffic?

oncoming traffic