Monday 25 March 2013

What is dangling pointer in c?


What is dangling pointer in c? 

Explanation:
Dangling pointer:

If any pointer is pointing the memory address of any variable but after some variable has deleted from that memory location while pointer is still pointing such memory location. Such pointer is known as dangling pointer and this problem is known as dangling pointer problem.

Initially:

Later:


Blog Author: Vijay Kumar


No comments:

Post a Comment