Answers for "why is using namespace std a bad practice"

0

why is using namespace std a bad practice

As the namespace std will attach a lot of functions for your program and 
might face collision with some of these unknown function name;
Example : One named his variable max but thats a function in namespace 
std which might throw you some unwanted results.
It can also collide with other imported libraries functions with the same
name.
Posted by: Guest on July-31-2021

Browse Popular Code Answers by Language