MCQs > IT & Programming > C++ > In C++, Output of the code? #include main() { for (int x=1; x<10; ++x) { ++x; } cout << x; return 0; }

C++ MCQs

In C++, what will the code below output? #include main() { for (int x=1; x<10; ++x) { ++x; } cout << x; return 0; }

Answer

Correct Answer: "x" was not declared in this scope.

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