Question: Question 2 2 pts What statement is true about the following code: char c; cin > > c; switch ( c ) { case '
Question
pts
What statement is true about the following code:
char c;
cin c;
switch c
case a:
break;
case b:
break;
char cannot be used in a switch
a switch must have a default statement
this code shows a legal switch statement
a and b should be a and b
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
