TLDR Web Dev · ARTICLES & TUTORIALS
FALSEHOODS PROGRAMMERS BELIEVE ABOUT NULL POINTERS
Summary from the TLDR Web Dev newsletter
Null pointer behavior is usually more complex than expected. Optimizations, platform-specific quirks, and the evolution of standards have created numerous edge cases and unexpected behaviors, particularly in C and C++. These misconceptions range from simple assumptions about program crashes to the intricacies of null pointer addresses and pointer provenance. Developers should avoid relying on intuition when it comes to null pointers and check docs diligently instead.