NNTP-Posting-Date: Sun, 18 Dec 2011 10:05:50 -0600 Message-ID: <4EEE0F61.6139@mindspring.com> Date: Sun, 18 Dec 2011 11:05:53 -0500 From: pete Reply-To: pfiland@mindspring.com Organization: PF X-Mailer: Mozilla 3.04Gold (WinNT; I) MIME-Version: 1.0 Newsgroups: comp.lang.c Subject: Re: Why C has Pointers. References: <10353483.597.1324140693693.JavaMail.geo-discussion-forums@prez5> <0nbqe7p03fis0cbr7l4q0v3nbkli0ql6am@4ax.com> <0.cf93faba882b86d069dd.20111218012659GMT.87iplellek.fsf@bsb.me.uk> <7dqqe7tcsgq8eupkkgaa4eipvu4v504ce5@4ax.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 26 X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 4.154.219.185 X-Trace: sv3-PKAOPUanBdWSyEtKHhZBfLuFgMo4PSTcrR0X6Heoi+7OKfkXkZdumSubzbt1kpI/N1qJJd54ItbFF3d!VS92g0E8xeYqou4ZvdJcyfcp9dZC1bxitf0sqkfY9H/XX1by7QrkvLeW7pOFOf6NRn0ddQJjBxz3!GJsaVFuKPew= X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1877 Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.franciliens.net!feed.ac-versailles.fr!usenet-fr.net!proxad.net!feeder1-2.proxad.net!74.125.46.80.MISMATCH!postnews.google.com!news2.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:14688 ralph wrote: > > On Sun, 18 Dec 2011 01:26:59 +0000, Ben Bacarisse > wrote: > >explain, eventually, that arr[i] is, by definition, *(arr + i). > > > > Sure it is because it ain't *(arr + i). It is ... > > *(arr + ( i * sizeof(datatype))) Ben Bacarisse is right. ralph is wrong. ISO/IEC 9899 6.5.2.1 Array subscripting Semantics 2 The definition of the subscript operator [] is that E1[E2] is identical to (*((E1)+(E2))). -- pete