Switch Statement in C++
What is Switch?
Switch is used to select one option from multiple choices.
google.com, pub-8434817042454839, DIRECT, f08c47fec0942fa0
Example
int day = 2;
switch(day) {
case 1: cout << “Monday”; break;
case 2: cout << “Tuesday”; break;
default: cout << “Invalid”;
}
When to Use?
When you have multiple fixed options

