MCQs > IT & Programming > C++ > Output of following code? include using namespace std; namespace fun1 { int a = 6; } namespace fun2 { int a = 11; } int main(int argc, const char * argv[]) { int a = 10; fun1::a; fun2::a; cout << a; return 0; }

C++ MCQs

What is the output if following code executed? include using namespace std; namespace fun1 { int a = 6; } namespace fun2 { int a = 11; } int main(int argc, const char * argv[]) { int a = 10; fun1::a; fun2::a; cout << a; return 0; }

Answer

Correct Answer: 10

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