What will be the output of the following C++ 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;
}
#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
Answer: Option A

Join The Discussion