InterviewSolution
Saved Bookmarks
| 1. |
What Happens If You Free A Pointer Twice? |
|
Answer» It is really DANGEROUS to FREE the same memory twice. If the memory has not been reallocated in between, it will GENERATE a “DOUBLE free” ERROR, since the memory location has already been freed. It is really dangerous to free the same memory twice. If the memory has not been reallocated in between, it will generate a “double free” error, since the memory location has already been freed. |
|