C++ break statements
In the tutorial, it is written that "The break statement's role is to terminate the switch statement." However, I find that this is not true, for instance, in the code below: #include <iostream> using namespace std; int main() { int age = 70; switch (age) { case 16: cout << "Too young" << endl; break; case 42: cout << "Adult" << endl; case 70: cout << "Senior" << endl; default: cout <<"This is the default case" << endl; } return 0; } If the switch statement was truly terminated before case 42, shouldn't there be no output? Instead, the computer outputs: Senior This is the default case ==================================================================== Similarly, the break does NOT terminate the switch statement in the following because the output is 3 (instead of no output): #include <iostream> using namespace std; int main() { int x = 3; switch (x) { case 0: cout << x++; break; case 1: cout << x++; case 2: cout << x++; case 3: cout << x; } return 0; } Am I misunderstanding something about break statements?