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;
}
```
A. aa
B. a
C. abcd
D. ab
B. a
You might also like to view...
Which of the following statements is false?
a. Object-oriented programming is today's key programming methodology. b. Java has become the language of choice for implementing Internet-based applications and software for devices that communicate over a network. c. Software commands computer hardware to perform tasks. d. In use today are more than a trillion general-purpose computers and trillions more Java-enabled cellphones, smartphones and other handheld devices.
What are the values the Memory Status column in Hyper-V can show and what are their meanings?
What will be an ideal response?
In a client-server network, users log in to the network instead of their local computers and are granted access to resources based on that login
Indicate whether the statement is true or false
Explain what a DropDownList object is and how you specify items you want to display in the list
What will be an ideal response?