Solved

Why Will the Following Code Not Compile

Question 38

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents