answersLogoWhite

0


Best Answer

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

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

Wiki User

15y ago

break is normally used to jump to the end of the current block of code.

exit is normally used to shut down the current process.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the differences between Break Continue and Exit?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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++


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

do not stop,continue on to the next exit.


Who can used to exit from a loop?

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


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.


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;


What is break in c?

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


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.


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


How do you exit if you are driving in lane 1 of a 4 lane freeway?

SAFELY merge into and through the slower lanes of traffic. If you cannot do so before your exit is reached, continue on the next exit by driving in Lane 4 - exit there and then return one exit to your original destination.