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
Is c++ slower than c?
Which operations are permitted on pointers?
What are the advantages of inheritance in c++?
Define the process of handling in case of destructor failure?
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
How can I improve my c++ skills?
When should I use unitbuf flag?
What is a dll entry point?
How do you save a c++ program?
What does I ++ mean in c++?
What is the difference between object-oriented programming and procedural programming?
What is the function to call to turn an ascii string into a long?
What are the basics of local (auto) objects?
What is virtual destructor? What is its use?
Mention the ways in which parameterized can be invoked.