Question: Given the following code snippet, which input value ( s ) would cause the line Your favorite social media is Twitter. to be contained in
Given the following code snippet, which input values would cause the line "Your favorite social media is Twitter." to be contained in the output?
int favorite ;
cout "Select your favorite social media: ;
cin favorite;
switch favorite
case :
cout "Your favorite social media is Facebook.";
break;
case :
cout "Your favorite social media is Twitter.";
break;
case :
cout "Your favorite social media is Pinterest.";
break;
default:
cout "Your selection is not known.";
and
None of these; the code contains errors
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
