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 |
Mention the default functions in C++, how would you detect that error has occurred inside the constructor and destructor.
What does it mean to declare a member function as virtual in C++?
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
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"; }
What is the difference between an ARRAY and a LIST in C++?
What is C++11?
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-; } }
How does stack look in function calls? When does stack overflow? What can you do to remedy it?
How does free know the size of memory to be deleted
Briefly explain various access specifiers in C++.
Declare a pointer to a function that takes a char pointer as argument and returns a void pointer.
What is the difference between malloc, calloc and realloc?