InterviewSolution
Saved Bookmarks
| 1. |
The incorrect statement with respect to dangling pointers is ___________(a) Pointer pointing to non-existent memory location is called dangling pointer(b) When a dynamically allocated pointer references the original memory after it has been freed, a dangling pointer arises(c) If memory leak occurs, it is mandatory that a dangling pointer arises(d) Dangling pointer may result in segmentation faults and potential security risksThe question was posed to me in homework.I'm obligated to ask this question of DMA Functions, Memory Leak, Dangling Pointers topic in chapter Dynamic Memory Allocation in C of C |
|
Answer» The CORRECT option is (C) If memory leak occurs, it is mandatory that a dangling pointer arises |
|