NULL v. zero
Posted Jul 16, 2004 19:35 UTC (Fri) by
Ross (subscriber, #4065)
In reply to:
NULL v. zero by sir99
Parent article:
NULL v. zero
"AIUI, the lhs doesn't determine how the rhs is evaluated. The rhs is evaluated independently and then promoted to the type of the lhs."
That was my point, really. That's why NULL as (void *)0 is better than just
zero, and why C++'s insistance that 0 is better confuses me.
(
Log in to post comments)