What is the printout of the following switch statement?
char ch = 'a';
switch (ch) {
case 'a': case 'A': cout << ch << endl; break;
case 'b': case 'B': cout << ch << endl; break;
case 'c': case 'C': cout << ch << endl; break;
case 'd': case 'D': cout << ch << endl;
}
+4
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is the printout of the following switch statement? char ch = 'a'; switch (ch) { case 'a': case 'A': cout ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Home » Computers & Technology » What is the printout of the following switch statement? char ch = 'a'; switch (ch) { case 'a': case 'A': cout << ch << endl; break; case 'b': case 'B': cout << ch << endl; break; case 'c': case 'C': cout << ch << endl; break;