Is this statement specific to C++? There is no such statement required for C right? What happens if this statement is missed? Will it still compile?
Using namespace std
hi @discobot
“using namespace std” means we use the namespace named std. “std” is an abbreviation for standard. So that means we use all the things with in “std” namespace. If we don’t want to use this line of code, we can use the things in this namespace like this. std::cout, std::endl.
If this namespace is not used, then computer finds for the cout, cin and endl etc… Computer cannot identify those and therefore it throws errors.
specific to cpp
code will not compile without it
Hi! To find out what I can do, say @discobot display help
.
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.