Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site dataio.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!vax135!cornell!uw-beaver!uw-june!entropy!dataio!bright From: bright@dataio.UUCP (Walter Bright) Newsgroups: net.lang.c Subject: Re: arrays/pointers in C Message-ID: <676@dataio.UUCP> Date: Thu, 6-Jun-85 12:35:44 EDT Article-I.D.: dataio.676 Posted: Thu Jun 6 12:35:44 1985 Date-Received: Sat, 8-Jun-85 01:24:01 EDT Reply-To: bright@dataio.UUCP (Walter Bright) Organization: Data I/O Corp., Redmond WA Lines: 13 In article <459@rtech.UUCP> jas@rtech.UUCP (Jim Shankland) writes: >An identifier of an array object is ALWAYS read as a pointer to the >first element of the array, except in the declaration itself. Not quite true. Inside of a sizeof expression, arrays are not converted to pointers. For example, int a[4][5]; b = sizeof(a[2]); b is assigned 5*sizeof(int), not sizeof(int *). Another C feature that can only be discerned by reading between the lines.