Pointers that do not point to a valid object of the appropriate type. Dangling pointers arise when an object is deleted or deallocated, without modifying the value of the pointer, so that the pointer still points to the memory location of the deallocated memory. As the system may reallocate the previously freed memory to another process, if the original program then dereferences the (now) dangling pointer, unpredictable behavior may result, as the memory may now contain completely different data. This is especially the case if the program writes data to memory pointed by a dangling pointer, as silent corruption of unrelated data may result, leading to subtle bugs that can be extremely difficult to find, or cause segmentation faults.View more random threads:
- how stack operation proves costly during traversing a tree
- Subject: Dev c++
- In C++ is SPACE is also a charactor??
- Overloaded >> operator not reading more than first line...
- what is meant by concrete class in c++ 2011?
- C++ Guessing Game include Number and ABC
- how i can write a right program without any errors n i do...
- convert template to int in c++
- how we used the 1-calloc Function 2- malloc Function 3-...
- classes use in c++ May 2011
Sponsored Links
There are currently 1 users browsing this thread. (0 members and 1 guests)