What will be the output of the following C++ code?
#include <iostream>
#include <algorithm>
using namespace std;
int main ()
{
cout << min(2, 1) << ' ';
cout << min('m','m') << '\n';
return 0;
}
#include <iostream>
#include <algorithm>
using namespace std;
int main ()
{
cout << min(2, 1) << ' ';
cout << min('m','m') << '\n';
return 0;
}A. Error
B. Runtime error
C. 1 m
D. 5 m
Answer: Option C

Join The Discussion