InterviewSolution
| 1. |
What Is Dangling Pointer? |
|
Answer» These are the POINTERS that do not point to any object of APPROPRIATE type. These are special cases of MEMORY vialation as they do not point to any appropraite type.These ARISES when some object is deleted from the memory or when an object is deallocated thus the pointer keeps on pointin to the memory location untill it is modified. Dangling pointers may lead to unpredictable results. These are the pointers that do not point to any object of appropriate type. These are special cases of memory vialation as they do not point to any appropraite type.These arises when some object is deleted from the memory or when an object is deallocated thus the pointer keeps on pointin to the memory location untill it is modified. Dangling pointers may lead to unpredictable results. |
|