Vidyalelo
C++ Programming · Q318

C++ miscellaneous

Programming · C++ Programming · question 318

Q318

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); cout << Var2.Funct2(3.123); return 0;

A.
100
B.
200
C.
3.123
D.
2003.123
Answer

Answer: Option D

Solution

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