Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.6.2.17 $; site uiucdcs.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!mccaugh From: mccaugh@uiucdcs.UUCP Newsgroups: net.lang.c Subject: Re: sizeof and array parameters Message-ID: <27600042@uiucdcs.UUCP> Date: Sat, 29-Dec-84 04:59:00 EST Article-I.D.: uiucdcs.27600042 Posted: Sat Dec 29 04:59:00 1984 Date-Received: Thu, 3-Jan-85 00:56:41 EST References: <6794@brl-tgr.UUCP> Lines: 9 Nf-ID: #R:brl-tgr:-679400:uiucdcs:27600042:000:347 Nf-From: uiucdcs!mccaugh Dec 29 03:59:00 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