Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site utcsri.UUCP Path: utzoo!utcsri!greg From: greg@utcsri.UUCP (Gregory Smith) Newsgroups: comp.lang.c Subject: Re: Auto variable with sizeof == 0 Message-ID: <4097@utcsri.UUCP> Date: Mon, 9-Feb-87 19:23:30 EST Article-I.D.: utcsri.4097 Posted: Mon Feb 9 19:23:30 1987 Date-Received: Mon, 9-Feb-87 22:42:21 EST References: <4114@brl-adm.ARPA> <397@mipos3.UUCP> Reply-To: greg@utcsri.UUCP (Gregory Smith) Organization: CSRI, University of Toronto Lines: 12 Summary: In article <397@mipos3.UUCP> pinkas@mipos3.UUCP (Israel Pinkas) writes: > [...] (Remember that sizeof(array) =~ sizeof(element of array) >times number of elements. This is approximate because C allows a compiler >to pack arrays.) The relationship is exact: sizeof(array)==sizeof( array[0] )*(# of elements). An array may not be packed in a way which makes this relationship inexact. -- ---------------------------------------------------------------------- Greg Smith University of Toronto UUCP: ..utzoo!utcsri!greg Have vAX, will hack...