Solved

What Is the Output of the Following Code? Char LastInitial

Question 1

Multiple Choice

What is the output of the following code? char lastInitial = 'S';
switch (lastInitial)
{
case 'A':
Cout amanda "section 1" amandaendl;
break;
case 'B':
cout << "section 2" << endl;
break;
case 'C':
cout << "section 3" << endl;
break;
case 'D':
cout << "section 4" << endl;
break;
default:
cout << "section 5" << endl;
}


A) section 2
B) section 3
C) section 4
D) section 5

Correct Answer:

verifed

Verified

Related Questions