InterviewSolution
| 1. |
Define Namespace In C++? |
|
Answer» It is a feature in C++ to minimize name collisions in the global name space. This NAMESPACE keyword assigns a distinct name to a library that allows other LIBRARIES to use the same IDENTIFIER names without creating any name collisions. Furthermore, the compiler uses the namespace signature for differentiating the DEFINITIONS. It is a feature in C++ to minimize name collisions in the global name space. This namespace keyword assigns a distinct name to a library that allows other libraries to use the same identifier names without creating any name collisions. Furthermore, the compiler uses the namespace signature for differentiating the definitions. |
|