what is the use of Namespace in c++.

Answer Posted / snigdhadeb ash.

Namespace is a new concept introduced by the ANSI C++
standards committee. This defines a scops for the
identifiers that are used in a program. For using the
identifiers defined in the namespace scope we must include
the using directive,like
using namespace std;
Here , std is the namespace where ANSI C++ standard class
libraries are defined. All ANSI C++ programs must include
this directive. This will bring all the identifiers defined
in std to the current global scope. using and namespace are
the new keywords of C++.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the various storage classes in C++?

657


What is the difference between a reference and a pointer?

607


Is sorted c++?

586


How to defines the function in c++?

630


What is a class template?

604






What are separators in c++?

637


What is the use of bit fields in structure declaration?

552


What is pointer to array in c++?

630


When you overload member functions, in what ways must they differ?

601


When does the c++ compiler create temporary variables?

584


What are the stages in the development cycle?

587


Is c++ the hardest programming language?

653


Is there structure in c++?

604


What is switch case in c++ syntax?

631


What is the c++ code?

574