
14 Sep
2005
14 Sep
'05
10:09 a.m.
On Tue, Sep 13, 2005 at 08:04:25PM +0200, Wolfgang Denk wrote:
We can write 0 or 0x0 or 000 or 0x00000 or (1 - 1) or NULL - all this does not change the behaviour of the code at all.
No doubt, but practice is to use NULL to mark invalid pointer, while address zero is simply "0". It won't affect generated code, but will make understanding it better.
Best regards, ladis