Bit Addressable Architectures

William E. Davidsen Jr davidsen at steinmetz.ge.com
Fri Apr 15 00:04:11 AEST 1988


In article <8646 at eleazar.Dartmouth.EDU> major at eleazar.Dartmouth.EDU (Lou Major) writes:
...
| 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)

Excuse me? Not on any machine I've ever seen, or in any standard I've
ever read. foo is an array, not a pointer. What you said would be true
if the declaration was:
	char *foo = "This is a test";

I've moved followup to comp.lang.c
-- 
	bill davidsen		(wedu at ge-crd.arpa)
  {uunet | philabs | seismo}!steinmetz!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me



More information about the Comp.lang.c mailing list