Vidyalelo
C++ Programming · Q698

C++ miscellaneous

Programming · C++ Programming · question 698

Q698

What will be the output of the following C++ code? #include using namespace std; template type Max(type Var1, type Var2) return Var1 > Var2 ? Var1:Var2; int main() int p; p = Max(100, 200); cout << p << endl; return 0;

A.
100
B.
200
Answer
C.
300
D.
100200

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board