Answered You can hire a professional tutor to get the answer.
What is the output of the following code, and why?
What is the output of the following code, and why?
char lastInitial = 'S';
switch (lastInitial) { case 'A': cout << "User 1" <<endl; break; case 'B': cout << "User 2" <<endl; break; case 'C': cout << "User 3" <<endl; break; case 'D': cout << "User 4" <<endl; break; default: cout << "Absent" <<endl; }