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 atoi?

0 Answers  


What is the difference between object-oriented programming and procedural programming?

0 Answers  


reading material is provided 3 books for c++ if u need more do let me know thnx i hve lots of material do let me know if u want it

2 Answers  


Can constructor be static in c++?

0 Answers  


Where the memory to the static variables is allocated?

0 Answers  






What is the difference between the functions rand(), random(), srand() and randomize()?

0 Answers  


Why do we use double in c++?

0 Answers  


Who invented turbo c++?

0 Answers  


What are the rules for naming an identifier?

0 Answers  


Why c++ is called oop?

0 Answers  


Profiler in projects?

2 Answers   Symphony,


Why for local variables the memory required to hold the variable is allocated from the program stack and for new its allocated from the heap?

1 Answers  


Categories