On Tue, Feb 26, 2008 at 4:21 PM, Pietro Gagliardi <[EMAIL PROTECTED]> wrote: > And it's wonderful that the C standard defines a character literal as > so:
But it leaves the meaning of a literal like 'abcd' up to the compiler. I did something very perverse -- but 'legal' -- in the compiler I started writing for class... Also recall that sizeof('c') == sizeof(int). I suspect, though, that literals like 'abcd' are left from the B (word-addressable, not byte-addressable) days. A quick check of /sys/src/cmd/cc/lex.c shows that kenc disallows such horrors. --Joel