sizeof and array parameters

mccaugh at uiucdcs.UUCP mccaugh at uiucdcs.UUCP
Sat Dec 29 19:59:00 AEST 1984


 It seems the C compiler in use may be at fault; on p.97 of "C: A Reference
 Manual", Harbison & Steele state: "...when the array identifier is used as
 an operand of the SIZEOF operator...SIZEOF returns the size  of the entire
 array, not the size of a pointer to the first array element."  (Also, read
 the bottom of p.99)

 --uiucmsl!mccaugh



More information about the Comp.lang.c mailing list