Hacker News new | ask | show | jobs
by mystified5016 354 days ago
Null is not a unique pointer, it's a contant like -1

It returns multiple types of null pointer

1 comments

The spec says that malloc(0) shall return "either a null pointer or a unique pointer". If it's null, it doesn't have to be unique.