Solved

You Want to Use Only One Name,funct1,from Name Space MyNamespace

Question 29

Multiple Choice

You want to use only one name,funct1,from name space MyNamespace.The directive #include "MyNamespace" has been places at the top of the file.You will call this function a large number of times in a block.Which of the following will make only the name funct1 available only in that block (not outside the block) ?


A) Place using namespace std;
Just after your #include directives.
B) Place using namespace MyNamespace;
Just after your other #include directives.
C) Place using namespace MyNamespace;
Just inside the block where you want to use funct1.
D) Place using MyNamespace::func1;
Just inside the block where you want to use funct1.
E) Place #include "MyNamespace" at the top of the file where you are using the name func1.

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