What is dangling pointers?and what is memory leak?

Answer Posted / shamoona

Dangling Pointer
dangling pointer point to unknown destination
for example
int*ptr;
{
int a=5;
ptr=

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the four main data types?

807


Can we sort map in c++?

791


What is c++ used for in games?

804


What is a float in c++?

740


What are keywords in c++?

832


What is linked list in c++?

890


Explain all the C++ concepts using examples.

920


How do you add an element to a set in c++?

741


What is the best c++ book for beginners?

818


What is a constant? Explain with an example.

735


Difference between overloaded functions and overridden functions

816


Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

813


Is c++ a dying language?

802


If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?

899


Explain virtual destructor?

906