Define namespace.

Answers were Sorted based on User's Feedback



Define namespace...

Answer / beena

It is a feature in c++ to minimize name collisions in the global name space. This namespace keyword assigns a distinct name to a library that allows other libraries to use the same identifier names without creating any name collisions. Furthermore, the compiler uses the namespace signature for differentiating the definitions.

Is This Answer Correct ?    0 Yes 0 No

Define namespace...

Answer / Bhumika Kansal

In C++, a namespace is a container that organizes items such as functions, classes, variables, and other namespaces to prevent naming conflicts. A namespace is created using the keyword 'namespace' followed by the namespace name and curly braces.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ Interview Questions

In C++ what is a vtable and how does it work?

1 Answers   Agilent,


What is constant keyword in C++? Illustrate its various uses.

1 Answers   Akamai Technologies, Infogain,


What are the advantages and disadvantages of B-star trees over Binary trees?

1 Answers  


Execute the qsort () in c/sort() in c++ library or your own custom sort which will sort any type of data on user defined criteria.

1 Answers   Adobe,


Discuss about iteration statements in C++ .

1 Answers   Agilent,


How can you force the compiler to not generate them?

1 Answers   Amazon,


What is a virtual base class?

6 Answers   Fidelity, Siemens,


Tell me about virtual function

2 Answers  


What is an algorithm (in terms of the STL/C++ standard library)?

1 Answers   Amazon,


write a program To generate the Fibonacci Series.

1 Answers   Accenture,


Explain encapsulation in C++.

1 Answers   Verifone,


What is the purpose of a constructor? Destructor?

1 Answers   Amazon,


Categories