break Keyword

Keyword Index

Passes control out of the compound statement.

The break statement causes control to pass to the statement following the innermost enclosing while, do, for, or switch statement. The syntax is simply

break;