InterviewSolution
| 1. |
What Is Dangling Pointer In C? |
|
Answer» If any POINTER is pointing at the memory location/address of any variable, but if the variable is deleted or does not EXIST in the current scope of code, while pointer is STILL pointing to that memory location, then the pointer is called dangling pointer. For example, If any pointer is pointing at the memory location/address of any variable, but if the variable is deleted or does not exist in the current scope of code, while pointer is still pointing to that memory location, then the pointer is called dangling pointer. For example, |
|