Question: [ 3 . 3 . c ] What is the output of the following code? Int x = 1 , y - 2 y switch

[3.3.c] What is the output of the following code?
Int x=1,y-2y switch (y-x)
switch
case 1
cout I am number one ?n endl
cout "I am number two" endl
case 4: cout "I am number three" endl
cout "I am number four" endl
break;
default: cout "I am in the wrong game!" endl;
I am number three
I am number four
I am in the wrong game!
I am number one
I am number two
I am number one
 [3.3.c] What is the output of the following code? Int x=1,y-2y

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!