Talk:c/language/switch
From cppreference.com
> The break statement, when encountered anywhere in statement, exits the switch statement...
This code prints "hello world\n", even with break; in the start of switch:
int main(void) {
switch(1) {
break;
case 1:
puts("hello world");
break;
}
}
I think we need to rephrase the statement above like this:
> The break statement, when encountered anywhere in statement _after case_, exits the switch statement...