Explain dangling pointer.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What are the advantages of c++ over c?

0 Answers  


Floating point representation and output seems to be compiler dependent?

1 Answers  


Write about the retrieval of n number of objects during the process of delete[]p?

0 Answers  


What is the first name of c++?

0 Answers  


What are the four main data types?

0 Answers  






What is an action class?

1 Answers  


1)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea += sizeof(int); } return 0; } 2)#include <iostream.h> int main() { int *a, *savea, i; savea = a = (int *) malloc(4 * sizeof(int)); for (i=0; i<4; i++) *a++ = 10 * i; for (i=0; i<4; i++) { printf("%d\n", *savea); savea ++; } return 0; } The output of this two programs will be different why?

5 Answers  


When volatile can be used?

3 Answers   Symphony,


Why should you learn c++?

0 Answers  


How do you establish an is-a relationship?

0 Answers  


What is a null object in c++?

0 Answers  


Why do we need templates?

0 Answers  


Categories