What problem does the namespace feature solve?
Answer / nimish singh
Multiple providers of libraries might use common global identifiers causing a name collision when an application tries to link with two or more such libraries. The namespace feature surrounds a library's external declarations with a unique namespace that eliminates the potential for those collisions.
This solution assumes that two library vendors don't use the same namespace identifier, of course.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is an undefined behavior and sequence points
What is a virtual destructor?
When volatile can be used?
Is it possible to write a c++ template to check for a function's existence?
Will c++ be replaced?
What are C++ inline functions?
What is the use of namespace std in C++?
Define precondition and post-condition to a member function?
What is runtime errors c++?
Why is main an int?
What is the most powerful coding language?
How would perform Pattern Matching in C++?