Break Statement



next up previous contents index
Next: Continue Statement Up: Statements Previous: For Statement

Break Statement

The break statement has the form
break
Its effect is to terminate execution of the nearest for or while statement that contains the break. It is a compile-time error to use break outside the body of a for or while statement.



theta-questions@lcs.mit.edu