Q480
What will be the output of the following C++ code? #include #include #include using namespace std; template class A public: A() cout<<"Created "; ~A() cout<<"Destroyed "; ; int main(int argc, char const *argv[]) A a; return 0;
A.
Created
Destroyed
Destroyed
B.
Destroyed
Created
Created
C.
Compile-time error
AnswerD.
Run-time error
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board