switch(1) { case 1 : cout << '1'; // prints "1" break; // and exits the switch case 2 : cout << '2'; break; }