Answer Posted / beena
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.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is interface? When and where is it used?
Is swift a good first language?
How do I use turbo c++?
How do I make turbo c++ full screen?
Why is c++ still best?
What is stl in oop?
What is the difference between a reference and a pointer?
How static variables and local variablesare similar and dissimilar?
How the virtual functions maintain the call up?
What is function overloading in C++?
How const int *ourpointer differs from int const *ourpointer?
Does dev c++ support c++ 11?
I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.
Write syntax to define friend functions in C++.
What is Coupling?