Solved

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

Question 25

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