What is the output of this program below?
#include iostream
using namespace std;
namespace first
{
int var = 2;
}
namespace second
{
double var = 8.1416;
}
int main ()
{
int a;
a = first::var + second::var;
cout a;
return 0;
}

Posted on by