ExamVeda
Login
Home
Functions and Procedures in C plus plus
?

What will be the output of the following C++ code?
#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;
}

Answer & Solution
Correct Answer: Option A
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.