Question: what is the difference between null pointer and dangling pointer?
Answer: 2 Answers. A null pointer just means the pointer isn't pointing to anything, or in some languages means it is unknown what it is pointing at. ... A dangling pointer is one that you think is pointing at something but in reality is no longer there, hence the pointer is actually inaccurate but doesn't know it.