Computers and Technology

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:40, EricaLSH7624
Match the personality traits with their description
Answers: 2
image
Computers and Technology, 22.06.2019 18:30, ovoxotas
Which of the following commands is more recommended while creating a bot?
Answers: 1
image
Computers and Technology, 23.06.2019 00:30, amy20021
Write the html code to make a link out of the text “all about puppies”. it should link to a pdf called “puppies. pdf” inside the “documents” folder. the pdf should open in a new window.
Answers: 2
image
Computers and Technology, 23.06.2019 01:00, Ltik11900
Write the command that can be used to answer the following questions. (hint: try each out on the system to check your results.) a. find all files on the system that have the word test" as part of their filename. b. search the path variable for the pathname to the awk command. c. find all files in the /usr directory and subdirectories that are larger than 50 kilobytes in size. d. find all files in the /usr directory and subdirectories that are less than 70 kilobytes in size. e. find all files in the / directory and subdirectories that are symbolic links. f. find all files in the /var directory and subdirectories that were accessed less than 60 minutes ago. g. find all files in the /var directory and subdirectories that were accessed less than six days ago. h. find all files in the /home directory and subdirectories that are empty. i. find all files in the /etc directory and subdirectories that are owned by the group bin."
Answers: 1
Do you know the correct answer?
What will be displayed by the following switch statement? char ch = 'a';

switch (ch) <...

Questions in other subjects:

Konu
English, 03.09.2021 05:20
Konu
Mathematics, 03.09.2021 05:20
Konu
English, 03.09.2021 05:20