R
Rookie
If he did, he'd be wrong. 0 is a null pointer constant; (void *)0 is a
Newbie question: Whats the difference between a null pointer and a null
pointer constant?
null pointer constant; but (char *)0 is _not_ a null pointer constant.
It's a null pointer constant, 0, _plus_ a cast to char *. This evaluates
to a null pointer with char pointer type, so it could be said to be a
null pointer, but it is not a null pointer constant.
Newbie question: Whats the difference between a null pointer and a null
pointer constant?