C Language – Dangling Pointers & Wild Pointers – How to Avoid Them?
The previous article C Language – The Lifecycle of Variables discussed the lifecycle of dynamic memory and mentioned dangling pointers. So, what is a dangling pointer? Wild pointers and dangling pointers are like “time bombs” in C/C++ programs, and they must be strictly avoided through good programming practices and modern tools (such as smart pointers). … Read more