Answer Posted / ramprasad g
The use of namespace is to avoid clash during naming of
variable,classes etc.
Suppose a company wants to release its version of a
function, it can create a separate namespace and then create a
function within that namespace.Another company can create a
function of same name, as long as it is in different
namespace.And the third company can use both the functions
in the same program by using resolving the namespace.
pakage concept of Java is a similar idea.
| Is This Answer Correct ? | 20 Yes | 2 No |
Post New Answer View All Answers
What is c++ prototype?
Explain unexpected() function?
What is the best c++ book for beginners?
What is lambda in c++?
Why should we use null or zero in a program?
What is a dynamic binding in c++?
Why is c++ not purely object oriented?
What are compilers in c++?
Describe the advantage of an external iterator.
What is the use of pointer in c++ with example?
Difference between an inspector and a mutator
What sorting algorithm does c++ use?
What is c++ virtual inheritance?
Can we declare a base-class destructor as virtual?
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that