0

What is the explanation for the dangling pointer in C?

Shathana. S.R. Answered question May 26, 2023
User Avatar

When there is a pointer pointing to a memory address of any variable, but after some time the variable was deleted from the memory location while keeping the pointer pointing to that location is known as a dangling pointer in C.