break
loop
{
break;
//code...
}
or
switch( variable )
{
case value:
/* code */
break;
case value:
/* code */
break;
}
Break is used within loops and switch statements to jump to the end of the
code block. It causes the "//code..." above to be skipped and terminates the
loop. In switch case statements, break causes the remaining cases to be
skipped--it prevents "falling through" to other cases.