Question: The exact output produced after executing the following C++ code is int x=10, y=16, z=12 ; cout < < My Answer is:; if (x>y) cout
The exact output produced after executing the following C++ code is
int x=10, y=16, z=12 ;
cout << "My Answer is:";
if (x>y)
cout << x + y << "??" ;
else
if (z < y)
cout << x + z << "$$" ;
cout << "BYE";
-
My Answer is:22$$BYE
-
My Answer is:26$$BYE
-
My Answer is:26??BYE
-
My Answer is:22??BYE
-
My Answer is:NONE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
