What problem does the namespace feature solve?



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

Post New Answer

More C++ General Interview Questions

What is c++ manipulator?

0 Answers  


Write syntax to define friend functions in C++.

0 Answers   HAL,


Is there finally in c++?

0 Answers  


When a function is made inline. Write the situation where inline functions may not work.

2 Answers  


Is c++ a programming language?

0 Answers  






What is helper in c++?

0 Answers  


what is data abstraction in C++?

0 Answers  


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

0 Answers  


How are Structure passing and returning implemented by the compiler?

0 Answers  


Will c++ be replaced?

0 Answers  


What is :: operator in c++?

0 Answers  


Define token in c++.

0 Answers  


Categories