Solved

Why Will the Following Code Not Compile

Question 20

Multiple Choice

Why will the following code not compile?
Namespace ns1
{
Void print) ;
Void display1) {};
}
Namespace ns2
{
Void print) ;
Void display2) {};
}
Int main)
{
Using namespace ns1;
Using namespace ns2;
Display1) ;
Display2) ;
Print) ;
Return 0;
}


A) The call to print is ambiguous
B) We have not included the iostream library
C) We have not used namespace std
D) It will compile

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions