Xref: utzoo comp.lang.c:9331 comp.arch:4347 Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!umd5!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c,comp.arch Subject: Re: Bit Addressable Architectures Message-ID: <11062@mimsy.UUCP> Date: 14 Apr 88 17:38:39 GMT References: <11702@brl-adm.ARPA> <243@eagle_snax.UUCP> <2245@geac.UUCP> <8646@eleazar.Dartmouth.EDU> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 18 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. Quite wrong. There *are* compilers that produce the wrong answer for sizeof("string") (the `correct' number is 7), but any compiler that gets sizeof(foo) above wrong (2 or 4 rather than 16) is so egregiously broken that it is not worth discussing. -- In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163) Domain: chris@mimsy.umd.edu Path: uunet!mimsy!chris