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


Log-in to answer to this question.