AlgoMaster Logo

nullptr (C++11)

Medium Priority16 min readUpdated June 6, 2026

nullptr is the C++11 keyword for "this pointer points to nothing". It replaces the older habits of writing 0 or the macro NULL, which both predate C++ and cause real bugs once function overloading enters the picture. This chapter covers what nullptr is, why it exists, how it compares to its predecessors, and the small set of idioms that go with it.

Premium Content

Subscribe to unlock full access to this content and more premium articles.