Define namespace.



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

Post New Answer

More C++ Interview Questions

Find the Factorial of a number using a program.

0 Answers   Accenture,


explain the term 'resource acquisition is initialization'?

0 Answers   Amazon,


Write a C++ Program to Display Number (Entered by the User).

1 Answers  


Explain what happens when an exception is thrown in C++.

0 Answers   Amazon,


What is wrong with this statement? std::auto_ptr ptr(new char[10]);

0 Answers   Amazon,


What is the difference between creating an object, using 'new' and using 'malloc'?

3 Answers   HFG, Siemens,


What's the value of the expression 5["abxdef"]?

0 Answers  


What are the fundamental features of an object-oriented language?

0 Answers   Accenture,


How many times will this loop execute? Explain your answer.

0 Answers  


What is the 4 difference between delete[] and delete?

0 Answers   Alter,


Without using third variable write a code to swap two numbers.

0 Answers   Accenture,


Identify the errors in the following program. #include <iostream> using namespace std; void main() { int i=5; while(i) { switch(i) { default: case 4: case 5: break; case 1: continue; case 2: case 3: break; } i-; } }

1 Answers  


Categories