what is the function of using namespace std and how it exacutes a function when used before cin or cout as std::cin.
Using namespace
@Tej_narayan A namespace is a declarative region that provides a scope to the identifiers (the names of types, functions, variables, etc) inside it. Namespaces are used to organize code into logical groups and to prevent name collisions that can occur especially when your code base includes multiple libraries.
Also refer this: https://www.tutorialspoint.com/What-does-using-namespace-std-mean-in-Cplusplus
Hope this helps
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.