0
Why "using namespace std ;" is used in c++ please help me iam beginner to c++.
C++
2 Answers
+ 3
it just namespace..
so that u dont have to write
"std::cout", "std::endl"
0
Namespaces are used to organize code into logical groups and prevent naming collisions while including multiple library headers.
For example suppose you include a header containing a function named strcpy().But there already exists a function strcpy() in the <string> header of std namespace .so you have to define a namespace e.g xyz:: strcpy () to prevent errors