+ 4
What is dangling pointer?
2 Respostas
+ 9
It's a pointer that points to an invalid address that was formerly valid. Text book example is a pointer to a variable on the stack that gets cleaned up.
+ 1
when a pointer is declared but it doesn't point to any memory location then we should initialise it with null if this doesn't made then there exists a dangling pointer problem as it is not able to point any memory location.