1.

What is the output of this program?
#include 
using namespace std;
namespace first
{
int num = 5;
}
namespace second
{
int num = 11;
}
int main ()
{
int num = 27;
first::num;
second::num;
cout << num;
return 0;
}

A. 27
B. 11
C. 25
D. Compilation Error
E. None of these
Answer» B. 11


Discussion

No Comment Found

Related MCQs