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 risks
Answer: Option C
Join The Discussion