Question: What is output? #include using namespace std; template MyType f ( MyType var 1 , MyType var 2 ) { if ( var 1 >
What is output?
#include
using namespace std;
template
MyType fMyType var MyType var
if var var
return var;
else
return var;
int main
cout f;
cout fAB;
cout f;
B
A
Error: The compiler generates an error in all the cout statements because the data type is not specified.
A
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
