hardcoded constants
Doug Gwyn
gwyn at smoke.BRL.MIL
Tue Dec 27 15:17:41 AEST 1988
In article <15145 at mimsy.UUCP> chris at mimsy.UUCP (Chris Torek) writes:
>sizeof is indeed not a function, yet sizeof('\0') is the same as
>sizeof(0) and sizeof(int), which are usually not the same as sizeof(char).
We should probably explain also that it's the same as sizeof 0 and
sizeof '\0', but not sizeof int (which is illegal). Since any C
text should explain this, look it up if you don't understand.
More information about the Comp.lang.c
mailing list