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
Which is most difficult programming language?
What does std mean in c++?
What does I ++ mean in c++?
What are the characteristics of friend functions?
What does asterisk mean in c++?
What happens if a pointer is deleted twice?
Explain the difference between c & c++?
What are the advantages of using a pointer?
If all is successful, what should main return a) 0 b) 1 c) void
What c++ is used for?
Why do we need pointers?
What is the use of dot in c++?
What is atoi?
Explain the volatile and mutable keywords.
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h