Question: switch ( id ) { case 8 : cout Janet; break; case 2 : case 7 : cout Mark; break; case 9 : cout Jerry;

switch (id)
{
case 8:
cout "Janet";
break;
case 2:
case 7:
cout "Mark";
break;
case 9:
cout "Jerry";
break;
default:
cout "Sue";
}//end switch
What will the code in Figure 6-34 display when the id variable contains the number 2
What will the code in Figure 6-34 display when the id variable contains the number 4
. What will the code in Figure 6-34 display when the id variable contains the number 9
 switch (id) { case 8: cout "Janet"; break; case 2: case

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 Databases Questions!