Xref: utzoo comp.lang.c:9319 comp.arch:4343 Path: utzoo!mnetor!uunet!mfci!root From: root@mfci.UUCP (SuperUser) Newsgroups: comp.lang.c,comp.arch Subject: Re: Bit Addressable Architectures Message-ID: <340@m3.mfci.UUCP> Date: 14 Apr 88 19:06:03 GMT References: <11702@brl-adm.ARPA> <243@eagle_snax.UUCP> <2245@geac.UUCP> <7578@brl-smoke.ARPA> <1040@mcgill-vision.UUCP> <8646@eleazar.Dartmouth.EDU> Reply-To: karzes@m3.UUCP (Tom Karzes) Organization: Multiflow Computer Inc., Branford Ct. 06405 Lines: 15 Summary: Expires: Sender: Followup-To: Distribution: Keywords: In article <8646@eleazar.Dartmouth.EDU> major@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) Not on this planet. From K&R: "When applied to an array, the result is the total number of bytes in the array." The parentheses don't alter this fact. The example above is confusing because the number of characters in foo is exactly 16 (15 in the quotes plus the final null character).