Bit Addressable Architectures
Richard A. O'Keefe
ok at quintus.UUCP
Thu Apr 14 19:20:54 AEST 1988
In article <8646 at eleazar.Dartmouth.EDU>, major at eleazar.Dartmouth.EDU (Lou Major) writes:
> *ahem*
> char foo[]="This is a test.";
> sizeof (foo) == sizeof (char *)
> NOT the number of machine bytes/words those characters take up. (16, for most
> typical installations)
Wrong. The answer *is* 16. This is one of the few cases where
foo and &(foo[0]) are different. I _tried_ this to make sure I was right.
That's always a good idea.
More information about the Comp.lang.c
mailing list