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...

A Recurring event is shown as Busy by default.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A ________ is used to indicate that an emphasis effect has been applied to an animation

A) green star B) yellow star C) blue circle D) red circle

Computer Science & Information Technology

In static binding, the determination of which function is called is made ____.

A. at run time B. in the program code C. by the user D. at compile time

Computer Science & Information Technology

In ingress filtering, the firewall examines packets________

A. exiting the network from the outside. B. entering the network from the outside. C. entering the network from the inside. D. exiting the network from the inside.

Computer Science & Information Technology