CS 3304: Comparative Languages
Data Types
[
Course Documents
] : [
Data Types
]
Previous
Contents
Next
Keyword Index
Dangling Pointers
A pointer points to a heap-dynamic variable that has been deallocated
Creating one:
Allocate a heap-dynamic variable and set a pointer to point at it
Set a second pointer to the value of the first pointer
Deallocate the heap-dynamic variable using the first pointer