Question: Printing Switch Case Analyze the code below and determine what will be printed when the program is run. int size = 2 switch ( size

Printing Switch Case
Analyze the code below and determine what will be printed when the program is run.
int size =2
switch (size){
case 1: cout "Small" endl;
case 2 : cout "Medium" endl;
case 3: cout "Large" endl; break;
}
default: cout "X-Large" endl;
Medium
Medium
Large
Small
Medium
Large
Sma 12
Medium
Large
X-Large
Printing Switch Case Analyze the code below and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!