What is the output of the following code:
char ch = ‘c’;
if (ch > ‘g’)
cout << “high”;
else if (ch < ‘m’)
cout << “low”;
else
cout << “middle”;
char ch = ‘c’;
if (ch > ‘g’)
cout << “high”;
else if (ch < ‘m’)
cout << “low”;
else
cout << “middle”;
char ch = ‘c’;
if (ch > ‘g’)
cout << “high”;
else if (ch < ‘m’)
cout << “low”;
else
cout << “middle”;
a) high
b) low
c) middle
d) c
b) low
Computer Science & Information Technology
You might also like to view...
Which type of website would StumbleUpon be classified as?
a. Crowdfunding site b. Live bookmarking site c. Metasearch site d. Social bookmarking site
Computer Science & Information Technology
A(n) ________ is a list of variable data to include in the document, effectively personalizing it, such as your name and major
Fill in the blank(s) with correct word
Computer Science & Information Technology