Why we use namespace std; in c++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why we use namespace std; in c++?

4th May 2020, 9:16 PM
View My Project
View My Project - avatar
2 Answers
+ 2
namespace std contain cin and cout which you use in your programs , cout<<"hello"; If you dont write using namespace std you should write std::cout , or std::cin and other things from std)
5th May 2020, 7:28 AM
꧁༒☬Bad☬Boy☬༒꧂
꧁༒☬Bad☬Boy☬༒꧂ - avatar
0
To perform input and output operations. It will load libraries to perform basic operation.
4th May 2020, 9:27 PM
Dasarath Singh