Break Statement

What is the break statement used for?
1. To quit the program.
2. To quit the current iteration.
3. To stop the current iteration and begin the next iteration.
4. None of the above.

Questions by alokkrbhatt   answers by alokkrbhatt

Showing Answers 1 - 15 of 15 Answers

PunamSalve

  • Sep 1st, 2010
 

I guess the question is specifically when the break keyword is used inside a loop. Generally, "break" is used to skip the execution of the following instructions (written after the break statement) those are written inside a block. By block I mean a pair of braces. 

yuvan

  • Sep 9th, 2012
 

break: when it is used, statement right after the loop gets executed.

continue: when it is used, the next iteration is executed.

  Was this answer useful?  Yes

aditya pathak

  • Sep 21st, 2012
 

3. To stop the current iteration and begin the next iteration.

  Was this answer useful?  Yes

preeti jain

  • Sep 26th, 2012
 

to quit the current iteration. i.e. jump out of the loop.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions