Question: switch ( id ) { case 8 : cout Janet; break; case 2 : case 7 : cout Mark; break; case 9 : cout Jerry;
switch id
case :
cout "Janet";
break;
case :
case :
cout "Mark";
break;
case :
cout "Jerry";
break;
default:
cout "Sue";
end switch
What will the code in Figure display when the id variable contains the number
What will the code in Figure display when the id variable contains the number
What will the code in Figure display when the id variable contains the number
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
