- 1
why we use ...using namspace ??
5 Answers
+ 3
Assuming you mean namespace std, std is the STanarD libary, which allow you to use a wide range of different functions in that libary, such as cout, cin and endl.
If we did not include namespace std, we would have to use the namespace name and a scope operator in order to access any function in that namespace.
std::cout
+ 3
I thought course and cin we're imported with #include<iostream>
0
but i have run cout statment without namespace std
0
You couldn't have, cout is part of the standard libary. Only way this would be true is if your compiler just automatically assigns things like cout and cin to std.
0
for executing cout and cin