Why namespace std is used in C++?
Answers
Answered by
6
Answer:
- Using namespace, you can define the context in which names are defined. In essence, a namespace defines a scope. C++ has a standard library that contains common functionality you use in building your applications like containers, algorithms, etc. ... So they created a namespace, std to contain this change.
Answered by
5
Answer:
A namespace is designed to overcome this difficulty and is used as additional information to differentiate similar functions, classes, variables etc hope it helps you dear
Similar questions