NULL vs nullptr (Why was it replaced?) [duplicate]

I know that in C++ 0x or NULL was replaced by nullptr in pointer-based applications. I’m just curious of the exact reason why they made this replacement?

In what scenario is using nullptr over NULL beneficial when dealing with pointers?

4 Answers
4

Leave a Comment