1.

What is the output of this program?
#include 
using namespace std;
namespace One
{
int num = 12;
}
namespace Two
{
double num = 10.027;
}
int main ()
{
int n;
n = One::num + Two::num;
cout << n;
return 0;
}

A. 22
B. 12
C. 10.027
D. 22.027
E. None of these
Answer» B. 12


Discussion

No Comment Found

Related MCQs