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 |
write a program to add two numbers without using an arithmetic operator.
How a new operator differs from the operator new?
What is the meaning of string in c++?
Which one is better- macro or function?
What are the basics of local (auto) objects?
If dog is a friend of boy and boy is a friend of house, is dog a friend of house?
What are function prototypes?
Give 2 examples of a code optimization?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
What is iterator c++?
Comment on c++ standard exceptions?
What is the v-ptr?