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 problems might the following macro bring to the application?

0 Answers  


what are the events occur in intr activated on interrupt vector table

0 Answers   HGS,


What are the extraction and insertion operators in c++? Explain with examples.

0 Answers  


Explain what data encapsulation is in c++?

0 Answers  


Define upcasting.

0 Answers  






When do we run a shell in the unix system? How will you tell which shell you are running?

0 Answers  


What is the size of a vector?

0 Answers  


Write a program to encrypt the data in a way that inputs a four digit number and replace each digit by (the sum of that digit plus 7) modulus 10. Then sweep the first digit with the third, second digit with the fourth and print the encrypted number.

0 Answers   CIIT Wah,


What is the default access level?

0 Answers  


How many types of classes are there in c++?

0 Answers  


Give an example of run-time polymorphism/virtual functions.

0 Answers  


Write bites in Turbo c++ Header ("Include") Files.

0 Answers  


Categories