Answer Posted / ramprasad g
The use of namespace is to avoid clash during naming of
variable,classes etc.
Suppose a company wants to release its version of a
function, it can create a separate namespace and then create a
function within that namespace.Another company can create a
function of same name, as long as it is in different
namespace.And the third company can use both the functions
in the same program by using resolving the namespace.
pakage concept of Java is a similar idea.
| Is This Answer Correct ? | 20 Yes | 2 No |
Post New Answer View All Answers
Explain the use of this pointer?
What is new in c++?
Can we inherit constructor in c++?
What are the uses of pointers?
Is java the same as c++?
Is c++ a difficult language?
What is the use of vtable?
What is the protected keyword used for?
What is c++ programming language?
Why is c++ still best?
Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be
What is a local reference?
What is virtual function? Explain with an example
What does count ++ do in c++?
Write a function that swaps the values of two integers, using int* as the argument type?