>I see your point swoopy but you know what I meant. Sorry if I didn't elaborate enough.
Well, Bjarne Stroustrup indeed prefers 0. I've always liked NULL, so I can tell the variable is a pointer immediately. But I guess nullptr will soon be here, so the point will then be moot.
Actually, NULL is defined in <cstddef>, so we might as well include that standard header instead of defining NULL ourselves.
In everything else
Originally Posted by lruc
NULL exists in both C and C++. What it is defined as is irrelevant.
The purpose of NULL hasn't changed in C++.