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:
Verified
Q22: Putting _ in front of a logical
Q23: In a switch statement, if the value
Q24: The _ of relational and logical operators
Q25: When one control statement is located within
Q26: Assume you have three int variables: x
Q28: The value of the expression 6 <
Q30: Suppose found = true and num =
Q33: What is the output of the following
Q35: You can disable assert statements by using
Q36: Which of the following will cause a
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents