0
why we use using namespace std in a program
explain
2 Answers
+ 2
useing namespace std tells the compiler to use the standard namespace library's, it is not nessary to put it at the top of your code, and most more advanced programs written in c++ do not. however you do need to tell the compiler what namespace you are useing, this can be done inline, for example
#include <iostream>
int main ()
{
std::cout "hello ";
std::cout "world";
return 0;
}
- 2
âstdâ just like âyourâ dog and âmyâ dog, let our kown âwho'sâ dog.