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 are stacks?
What is pointer to member?
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
what is static function
Difference between strdup and strcpy?
What is the difference between set and map in c++?
What is set in c++?
Can we use pointers in c++?
Is it possible to provide special behavior for one instance of a template but not for other instances?
Can class objects be passed as function arguments?
what is a reference variable in C++?
write the prime no program in c++?