What problem does the namespace feature solve?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Define anonymous class.

627


What is data binding in c++?

508


What are pointer-to-members in C++? Give their syntax.

619


What is the array and initializing arrays in c++?

510


Does c++ cost money?

584






Is c++ vector a linked list?

552


Can comments be nested?

632


daily Routine of father

914


State the difference between delete and delete[].

581


Is java a c++?

568


What is c++ in english?

579


What are the differences between new and malloc?

633


Define the process of handling in case of destructor failure?

580


What is low level language in simple words?

565


Explain static and dynamic memory allocation with an example each.

650