|
Question |
Rating |
View Answer |
|
What are the differences between new and malloc? |
|
View Answer |
|
What is pure virtual function?
|
|
View Answer |
|
What is a COPY CONSTRUCTOR and when is it called?
|
|
View Answer |
|
mutable" Keyword - What is "mutable"?
|
|
View Answer |
|
What is a mutable member?
|
|
View Answer |
|
What is polymorphism?
|
|
View Answer |
|
Explain about reference parameter? |
|
View Answer |
|
What does extern mean in a function declaration?
|
|
View Answer |
|
What’s the output of the following program? Why? #include <stdio.h> main() { typedef union { int a; char b[10]; float c; } Union;
Union x,y = {100}; x.a = 50; strcpy(x.b,"hello"); x.c = 21.50;
printf("Union x : %d %s %f
",x.a,x.b,x.c ); printf("Union y :%d %s%f
",y.a,y.b,y.c); }
Given inputs X, Y, Z and operations | and & (meaning bitwise OR and AND, respectively) What is output equal to in
|
|
View Answer |
|
What issue do auto_ptr objects address?
|
|
View Answer |
|
Why do C++ compilers need name mangling?
|
|
View Answer |
|
What are the debugging methods you use when came across a problem?
|
|
View Answer |
|
Will the following program execute? void main() { void *vptr = (void *) malloc(sizeof(void)); vptr++; } |
|
View Answer |
|
Can I define a type that is an alias of another type (like typedef in C++)? |
|
View Answer |
|
What are virtual functions? |
|
View Answer |
|
What is pure virtual function?
|
|
View Answer |
|
Are there any new intrinsic (built-in) data types?
|
|
View Answer |
|
How many ways are there to initialize an int with a constant?
|
|
View Answer |
|
What are the advantages and disadvantages of B-star trees over Binary trees?
|
|
View Answer |
|
What is virtual destructors? Why they are used? |
|
View Answer |