MCQs > IT & Programming > C++ > Output of the program? int a, b = 3; const int& ar[]= {a, b}; ar[0] = 2; std::cout << ar[0];

C++ MCQs

What is the output of the following program? int a, b = 3; const int& ar[]= {a, b}; ar[0] = 2; std::cout << ar[0];

Answer

Correct Answer: no output; program is ill-formed

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