Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ukma!gatech!mcdchg!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.lang.c Subject: Re: pointers to arrays Message-ID: <7806@chinet.chi.il.us> Date: 23 Feb 89 05:38:50 GMT References: <19784@uflorida.cis.ufl.EDU> <13171@steinmetz.ge.com> <1044@auspex.UUCP> Reply-To: les@chinet.chi.il.us (Leslie Mikesell) Organization: Chinet - Public Access Unix Lines: 13 In article <1044@auspex.UUCP> guy@auspex.UUCP (Guy Harris) writes: >>It looks to me as though given: >> int flimflam[20]; >>that &flimflam has type address of int. >Not in dpANS C; it has type "pointer to array of 20 'int's". It has >that type in C as implemented by most PCC-based implementations. Does this imply that pointer math and subscripting of the returned value is scaled by the size of the array? (i.e. would &flimflam + 1 evaluate to the same address as flimflam + 20?) Les Mikesell