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 difference between c & c++?
What is pure virtual function?
What are register variables?
Do you know the problem with overriding functions?
What does it mean to declare a destructor as static?
What is ios :: in in c++?
Is c++ a low level language?
What is ifstream c++?
State the difference between pre and post increment/decrement operations.
What is runtime polymorphism in c++?
When to use “const” reference arguments in a function?
Can I uninstall microsoft c++ redistributable?
What is c++ code?
How can we read/write Structures from/to data files?
What are the general quetions are in DEna bank manager IT/System interviews?