Examveda

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


This Question Belongs to C Program >> Memory Allocation

Join The Discussion

Related Questions on Memory Allocation