Question: #include iostream > using namespace std; int : main ( ) char character = ' # ' ; string name = Peter; character - =
#include iostream
using namespace std;
int
: main
char character #;
string name "Peter";
character ;
switch character
case :
name "Martha";
break;
case :
name "Anne";
break;
case :
name "Carl";
break;
case :
name "Vannesa";
break;
default: cout "Will" endl;
break;
return ;
cout "The selected name is name endl; what would be the result in the following lines:
line selection
line switch selection
line the prompting message is
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
