1.

What is the output of this program?
#include <iostream>
using namespace std;
template<typename type>
type Maximum(type num1, type num2)
{
return num1 > num2 ? num1:num2;
}
int main()
{
int Res;
Res = Maximum(150, 250);
cout << Res << endl;
return 0;
}

A. 250
B. 150
C. Compilation Error
D. Runtime Error
E. None of these
Answer» B. 150


Discussion

No Comment Found

Related MCQs