Vidyalelo
C Programming · Q62

Memory Allocation

Programming · C Programming · question 62

Q62

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
Answer
D.
Dangling pointer may result in segmentation faults and potential security risks

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board