Why we use (using namespace std; ) in c++ program?? But in turbo c++ compiler it is not used Why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why we use (using namespace std; ) in c++ program?? But in turbo c++ compiler it is not used Why?

comment your answers

4th Jan 2018, 3:32 PM
Nikash
1 Answer
+ 5
The concept of namespaces was introduced in C++ after 1996, when C++ was standardised to avoid ambiguities in headers and prevent name clashes. It is only used in modern compilers, and helps the user to use the functions from the standard namespace. Turbo C++ is old, and thus, lacks the support for namespaces. Kindly refer to the posts below for more information. https://www.sololearn.com/discuss/973737/?ref=app https://www.sololearn.com/discuss/946884/?ref=app https://www.sololearn.com/discuss/978564/?ref=app https://www.sololearn.com/discuss/288609/?ref=app
4th Jan 2018, 4:10 PM
Kinshuk Vasisht
Kinshuk Vasisht - avatar