Null pointers
Norman Diamond
ndiamond at watdaisy.UUCP
Tue Feb 12 13:57:37 AEST 1985
> Correct??
> if (pointer)
> and
> pointer = 0;
> ARE guaranteed by the language spec to work.
> function(0)
> ....
> int function(x)
> int *x;
> is NOT.
I'm sorry to add the n'th repetition of this to the net, but if this will
get it over with and cut useless traffic by 50%, here goes.
YES! THAT IS CORRECT!
--
Norman Diamond
UUCP: {decvax|utzoo|ihnp4|allegra|clyde}!watmath!watdaisy!ndiamond
CSNET: ndiamond%watdaisy at waterloo.csnet
ARPA: ndiamond%watdaisy%waterloo.csnet at csnet-relay.arpa
"Opinions are those of the keyboard, and do not reflect on me or higher-ups."
More information about the Comp.lang.c
mailing list