Vidyalelo
C++ Programming · Q897

C++ miscellaneous

Programming · C++ Programming · question 897

Q897

What will be the output of the following C++ code? #include #include using namespace std; int main () cout << "max(1, 2) == " << max(1, 2) << ' '; cout << "max('a', 'z') == " << max('a', 'z') << ' '; return 0;

A.
2z
Answer
B.
2a
C.
Error
D.
2y

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board