Answer Posted / 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 |
Post New Answer View All Answers
What is the difference between public, private, and protected access?
Is c++ vector dynamic?
What is stack unwinding?
What is the use of "new" operator?
What is else if syntax?
If dog is a friend of boy, is boy a friend of dog?
What is decltype c++?
What is the use of cmath in c++?
What is c++ mutable?
What is a tree in c++?
How does com provide language transparency?
When must you use a pointer rather than a reference?
List the merits and demerits of declaring a nested class in C++?
Can comments be nested?
Why is c++ not purely object oriented?