Examveda

What will be the output of the following C++ code?
#include <iostream>
#include <string>
using namespace std;
namespace A{
 
	int var = 10;
}
namespace B{
	int cout = 5;
}
int main()
{
	using namespace B;
	cout<<A::var;
}

A. 10

B. 5

C. Error

D. 105

Answer: Option C


Join The Discussion

Related Questions on Functions and Procedures in C plus plus