adplus-dvertising
frame-decoration

Question

What is the output of this program?
    #include <iostream>
    using namespace std;
    template<typename type> 
    class Test
    {
        public:
        Test()
        {
        };
        ~Test()
        {
        };
        type Funct1(type Var1)
        {
            return Var1;
        }
        type Funct2(type Var2)
        {
            return Var2;
        }
    };
    int main()
    {
        Test<int> Var1;
        Test<float> Var2;
        cout << Var1.Funct1(200) << endl;
        cout << Var2.Funct2(3.123) << endl;
        return 0;
    }

a.

200

b.

3.123

c.

200

d.

3.123

Answer: (c).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?