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:
- object oriented programming what does it mean and what are...
- what is Recursive function in c++ June 2011
- How can we stop a programme at any point in C++?
- What is generalization in c++ 2011
- C++ Random crash 2011
- when we push F1 key to step into a subroutine?
- what is buffer ptr and char* in c ++ 2011 ?
- A data member can be member of any class oject or any...
- What is polymorphism in c++ 2011
- why we have declared these two TreeNode pointers left
Sponsored Links
There are currently 1 users browsing this thread. (0 members and 1 guests)