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 put and get pointers?

697


What is the size of integer variable?

688


What is function prototyping?

707


Explain stack & heap objects?

711


What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?

726






What are structs in c++?

677


In what situations do you have to use initialization list rather than assignment in constructors?

720


Are c and c++ different?

626


What are the types of pointer?

644


How would perform Pattern Matching in C++?

794


What are c++ manipulators?

702


How do you find out if a linked-list has an end?

757


A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

3335


What is the difference between an array and a list?

668


What are the c++ access specifiers?

917