Difference between revisions of "cpp/language/break"
From cppreference.com
m (Text replace - "{{example}}" to "===Example===") |
m (Text replace - "{{syntax}}" to "===Syntax===") |
||
Line 5: | Line 5: | ||
Used when it is otherwise awkward to terminate the loop using the condition expression and conditional statements. | Used when it is otherwise awkward to terminate the loop using the condition expression and conditional statements. | ||
− | + | ===Syntax=== | |
{{sdcl list begin}} | {{sdcl list begin}} |
Revision as of 18:07, 2 August 2011
Template:cpp/language/sidebar Causes the enclosing for, while or do-while loop or {{rlp|switch | switch statement} to terminate.
Used when it is otherwise awkward to terminate the loop using the condition expression and conditional statements.
Contents |
Syntax
break
|
|||||||||
Explanation
After this statement the control is transferred to the statement following the enclosing loop.