- 2

Is it mandatory to use namespace std ?

Isn't enough that we are using header file. it contains all features though. why we using namespace then?

15th Sep 2017, 4:55 AM
Sierria Roy
Sierria Roy - avatar
2 Réponses
+ 9
no it is not mandatory. some even discourage its usage. There has been much discussion here on this topic. I will link one such post below for you. If you would like to view more you can use the search function with the keyword namespace or namespaces https://www.sololearn.com/discuss/294730/?ref=app
15th Sep 2017, 4:59 AM
jay
jay - avatar
+ 1
thanks a lot. I get it.
20th Sep 2017, 3:05 AM
Sierria Roy
Sierria Roy - avatar