What will be the output of the following C++ code? [code] #include <iostream> #include <algorithm> using namespace std;

What will be the output of the following C++ code?
Code:
    #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. 2y
 

Tìm kiếm

Back
Top