+ 2

Is it necessary to write using namespace std ?

26th Aug 2018, 7:11 AM
Vaishnavi Rajkumar Pawar
2 Réponses
+ 12
it's not compulsory to declare namespace std, but then you must mention scope for every function/class/variables which belong to that namespace. for example , if you don't declare namespace, for every cout or cin u will say std::cout or std::cin
26th Aug 2018, 7:25 AM
code learner
code learner - avatar