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
What is extern c++?
How do I use arrays in c++?
Define basic type of variable used for a different condition in C++?
Why is c++ is better than c?
Should I learn c++ c?
Does c++ support exception handling?
What are formatting flags in ios class?
What is a storage class? Mention the storage classes in c++.
What is a block in c++?
Why is c++ so fast?
Explain Text Manipulation Routines?
Who calls main function?
What is ofstream c++?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list
What do the keywords volatile and mean mutable?