Question: are null and nullptr equal?
Answer: In some cases, NULL is #define NULL 0 , as the integer constant 0 is special-cased in C and C++ when you compare it with pointers. ... The NULL constant gets promoted to a pointer type, and as a pointer it is a null pointer, which then compares equal to nullptr .