adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>   
    #include <algorithm>  
    using namespace std;
    int main () 
    {
        cout << "max(1, 2) == " << max(1, 2) << '\n';
        cout << "max('a', 'z') == " << max('a', 'z') << '\n';
        return 0;
    }

a.

2z

b.

2a

c.

Error

d.

None of the mentioned

Answer: (a).2z

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?