Is it necessary to write using namespace std ? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

Is it necessary to write using namespace std ?

26th Aug 2018, 7:11 AM
Vaishnavi Rajkumar Pawar
1 Antwort
+ 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