Q241
What will be the output of the following C++ code? #include using namespace std; template class Test public: Test() ; ~Test() ; type Funct1(type Var1) return Var1; type Funct2(type Var2) return Var2; ; int main() Test Var1; Test Var2; cout << Var1.Funct1(200) << endl; cout << Var2.Funct2(3.123) << endl; return 0;
A.
200
3.123
Answer3.123
B.
3.123
200
200
C.
200
D.
3.123
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board