adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    using namespace std;
    template<typename type>
    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

c.

300

d.

100200

Answer: (b).200

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?