hardcoded constants

Doug Gwyn gwyn at smoke.BRL.MIL
Tue Dec 27 14:55:02 AEST 1988


In article <1797 at dataio.Data-IO.COM> bright at dataio.Data-IO.COM (Walter Bright) writes:
>But doesn't sizeof('\0') return sizeof(int), instead of sizeof(char)?

Yes ...

>Remember, the integral promotions are being done.

... but integral promotion has nothing to do with it.  '\0' IS an integer
constant of value 0 and type int, not char.



More information about the Comp.lang.c mailing list