unlabelled break statement | has example //Without a label the break statement exits the inner loop and resumes execution with the outer loop for (int i = 0; i < 10; i++) { while (x < 50) { if (i * x++ > 400) { break; } //inner loop here } //outer loop here } |  |
is a subtopic of Loops and Decision Making |  |
is a kind of break statement |  |
jumps outside the nearest loop to an enclosing loop or to the next statement outside the loop |  |
break statement | causes execution to immediately halt the current loop |  |
has purpose to terminate a loop or switch-case statement |  |
see also break |  |
statement | is terminated by a semicolon  |  |
should be not more than one line long if possible |  |
syntactic unit | has syntax rule bold = mandatory italic = non-terminal normal font = optional |  |