Define namespace.

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


Please Help Members By Posting Answers For Below Questions

What is interface? When and where is it used?

1930


Is swift a good first language?

815


How do I use turbo c++?

763


How do I make turbo c++ full screen?

830


Why is c++ still best?

773


What is stl in oop?

980


What is the difference between a reference and a pointer?

863


How static variables and local variablesare similar and dissimilar?

850


How the virtual functions maintain the call up?

884


What is function overloading in C++?

1152


How const int *ourpointer differs from int const *ourpointer?

856


Does dev c++ support c++ 11?

798


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.

871


Write syntax to define friend functions in C++.

854


What is Coupling?

856