saving . . . saved namespace has been deleted. namespace has been hidden .
namespace
Title
Question
why it is important to use namespace in c++

C-and-Cpp First-Cpp-Program 00-01 min 0-10 sec 29-02-20, 12:34 p.m. deepanshigreza

Answers:

A namespace refers to a collection of libraries in C++.  Variable names have to be unique within a namespace, but the same variable name can be shared across multiple namespaces.  For a beginner level, you will be using only the std namespace.  When you mature as a programmer enough to use lots of libraries or even create libraries of your own, you will be dealing with other namespaces.
29-02-20, 2:37 p.m. bhaskar76


 the namespace helps in avoiding the ambiguity that may occur when two identifiers have the same name.
19-04-24, 1:58 p.m. Harini78


if you don't want use namespace in C++
write like this
using namespace std;
int main()
  {
    std::cout << "welcome \n";
    std::cout << "Here is Some Information about me \n";
    return 0;
   }
write individualy  with every cout <<
its just for begginers 

16-11-25, 1:07 p.m. Shabih_abbas


if you don't want use namespace in C++
write like this
using namespace std;
int main()
  {
    std::cout << "welcome \n";
    std::cout << "Here is Some Information about me \n";
    return 0;
   }
write individualy  with every cout <<
its just for begginers 

16-11-25, 1:08 p.m. Shabih_abbas


Log-in to answer to this question.