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

Mention the default functions in C++, how would you detect that error has occurred inside the constructor and destructor.

0 Answers   Adobe,


What does it mean to declare a member function as virtual in C++?

0 Answers   Amazon,


Write a program to read the values a, b and c and display x, where x=a/b–c. Test the program for the following values: (a) a = 250, b = 85, c = 25 (b) a = 300, b = 70, c = 70

1 Answers  


Identify the error in the following program. include<iostream> using namespace std; void main() { int num[]={1,2,3,4,5,6}; num[1]==[1]num ? cout<<"Success" : cout<<"Error"; }

1 Answers  


What is the difference between an ARRAY and a LIST in C++?

0 Answers   IBS, TCS,






What is C++11?

0 Answers   Adobe,


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  


How does stack look in function calls? When does stack overflow? What can you do to remedy it?

0 Answers   Adobe,


How does free know the size of memory to be deleted

0 Answers  


Briefly explain various access specifiers in C++.

0 Answers   Amdocs,


Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.

0 Answers   Alter,


What is the difference between malloc, calloc and realloc?

0 Answers   Alter,


Categories