Vidyalelo
C++ Programming · Q567

C++ miscellaneous

Programming · C++ Programming · question 567

Q567

What will be the output of the following C++ code? #include #include #include using namespace std; template class A public: A() cout a; return 0;

A.
Created
Destroyed
Answer
B.
Destroyed
Created
C.
Compile-time error
D.
Run-time error

Answer: Option A

Solution

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