C++ Programming Question:
Download Questions PDF

What problem does the namespace feature solve?

Answer:

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.

Download C++ Programming Interview Questions And Answers PDF

Previous QuestionNext Question
Describe run-time type identification.Are there any new intrinsic (built-in) data types?