delorie.com/archives/browse.cgi | search |
Date: | Wed, 25 Mar 1998 18:51:11 -0500 (EST) |
Message-Id: | <199803252351.SAA09923@delorie.com> |
From: | DJ Delorie <dj AT delorie DOT com> |
To: | salvador AT inti DOT gov DOT ar |
CC: | eliz AT is DOT elta DOT co DOT il, blizzar AT hem1 DOT passagen DOT se, djgpp AT delorie DOT com, |
djgpp-workers AT delorie DOT com | |
In-reply-to: | <m0yHoqi-000S2qC@inti.gov.ar> (salvador@inti.gov.ar) |
Subject: | Re: NULL redefined! :( |
> 2) Is equivalent to 0, that's: > > a) char *foo=0; then (foo==0) is true. BUT these are not equivalent: __null = foo; 0 == foo; Also, looking up the value of a variable takes more CPU time than comparing to a constant, and the compiler can't optimize it as well.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |