Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions

C++ Programming :: Namespaces - Discussion

Home > C++ Programming > Namespaces > MCQs Questions Discussion

11 / 12

What is the output of the below C++ program?

#include <iostream>
        using namespace std;
        namespace extra
        {
            int i;
        }
        void i()
        {
            using namespace extra;
            int i;
            i = 9;
            cout << i;
        }
        int main()
        {
            enum  letter { i, j};
            class i { letter j; };
            ::i();
            return 0;
        }

A9

B10

C11

DCompilation Error

Answer: Option (Login/Signup)

Show Explanation

Asked In :: Societe Generale

Post Your Answer Here:     

No Discussion on this question yet!