subject

What will be displayed by 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;
}

Answers
aa
abcd
a
ab

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:20
Avariable of the data type arrays is storing 10 quantities. what is true about these quantities? a. the quantities all have different characteristics. b. the quantities all have the same characteristics. c. five quantities have the same and five have different characteristics. d. it is necessary for all quantities to be integers. e. it is necessary for all quantities to be characters.
Answers: 2
question
Computers and Technology, 24.06.2019 22:30
The a great imaginary circle, or reference line, around earth that is equally distant from the two poles and divides earth into the northern and southern hemispheres.
Answers: 1
question
Computers and Technology, 25.06.2019 02:30
Technology has changed communications by replacing or supplementing traditional modes of communication that were primarily
Answers: 2
question
Computers and Technology, 25.06.2019 06:50
A1-megabit computer memory chip contains many 27 ff capacitors. each capacitor has a plate area of 3.09 × 10−11 m 2 . determine the plate separation of such a capacitor (assume an empty parallel-plate configuration). the characteristic atomic diameter is 10−10 m = 1 ˚a, and the permittivity of a vacuum is 8.8542 × 10−12 c 2 /n · m2 . answer in units of ˚a.
Answers: 3
You know the right answer?
What will be displayed by the following switch statement? char ch = 'a';

switch (ch) <...
Questions
question
Biology, 09.05.2020 06:57
question
Mathematics, 09.05.2020 06:57
question
Chemistry, 09.05.2020 06:57
question
English, 09.05.2020 06:57
Questions on the website: 13722367