logoalt Hacker News

zabzonk06/15/20251 replyview on HN

did nullptr exist in c++ back in 1995 - i can't remember


Replies

trealira06/15/2025

Nope, it was introduced in C++11, along with the type std::nullptr_t. Before that, you either used 0 or NULL, which was a macro constant defined to be 0.

show 1 reply