1.

What is the output of this program?
#include 
using namespace std;
namespace calc
{
int p = 12;
}
namespace calc
{
int q = 23;
}
int main(int argc, char * argv[])
{
calc::p = calc::q =6;
cout << calc::p << calc::q;
}

A. 66
B. 12
C. 23
D. 6
E. None of these
Answer» B. 12


Discussion

No Comment Found

Related MCQs