MCQs > IT & Programming > C++ > Output of the following program: struct A { A() { std::cout << 'A'; } template A(Args&&... args) { std::cout << 'B'; } A(const A&) { std::cout << 'C; } }; int main() { A a; A b = a; }

C++ MCQs

What is the output of the following program: struct A { A() { std::cout << "A"; } template A(Args&&... args) { std::cout << "B"; } A(const A&) { std::cout << "C"; } }; int main() { A a; A b = a; }

Answer

Correct Answer: AB

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it