1.

What is the output of this program?
#include 
using namespace std;
namespace calculation
{
int p;
}
void p()
{
using namespace calculation;
int p;
p = 15;
cout << p;
}
int main()
{
enum letter { K, L};
class K { letter L; };
::p();
return 0;
}

A. Compilation Error
B. Runtime Error
C. Garbage value
D. 15
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs