What are namespaces in c++?



What are namespaces in c++?..

Answer / Lalit Mohan

Namespaces in C++ provide a mechanism for organizing identifiers to avoid naming conflicts. They help keep the global namespace clean and prevent collisions between user-defined names and system-provided names.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

Can user-defined object be declared as static data member of another class?

1 Answers  


Can I uninstall microsoft c++ redistributable?

1 Answers  


What are stacks? Give an example where they are useful.

1 Answers  


Difference between shift left and shift right?

1 Answers   Symphony,


Is c++ built on c?

1 Answers  


How can we check whether the contents of two structure variables are same or not?

1 Answers  


What is a smart pointer?

2 Answers  


What's the hardest coding language?

1 Answers  


How can I improve my c++ skills?

1 Answers  


What can c++ be used for?

1 Answers  


Tell me difference between constant pointer and pointer to a constant.

1 Answers   Honeywell, Zomato,


What are manipulators in c++ with example?

1 Answers  


Categories