adspace


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 character terminates all character array strings a) b) . c) END

1397


What is the latest version on c++?

1209


daily Routine of father

1485


Can union be self referenced?

1267


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1165