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
switch size
case : cout "Small" endl;
case : cout "Medium" endl;
case : cout "Large" endl; break;
default: cout XLarge" endl;
Medium
Medium
Large
Small
Medium
Large
Sma
Medium
Large
XLarge
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
