Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!news.glorb.com!border3.nntp.dca.giganews.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 NNTP-Posting-Date: Tue, 21 Feb 2012 10:46:07 -0600 Message-ID: <4F43CA51.67E5@mindspring.com> Date: Tue, 21 Feb 2012 11:46:09 -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: Arrays Vs Pointers References: <4F42C9FB.2597@mindspring.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.218.192 X-Trace: sv3-lMXfXCVU0hGGd6aN95A9sBef9wInq56jbJIm67VEDLLfMwfqPVIpcmp7Q382O9t3WZWa6Aa1INhQJp2!1ImRTG3dl6FdpGWm5ZQG1ipl45jcxfuWHn4r2bc/rps+TD715piSQQcRmr/4iFihbW5c5gxczAyO!JbgYAOsiqqc= 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: 1984 Xref: x330-a1.tempe.blueboxinc.net comp.lang.c:17741 Richard Sanders wrote: > > On Mon, 20 Feb 2012 16:35:57 -0800, Keith Thompson > wrote: > > >Let me amend that slightly. It's possible that some compilers might > >generate faster code for *(p+3) than for p[3]. > >There's no good reason > >for that, since the two expressions are equivalent by definition, but > >it's possible. > >It's also possible Schildt encountered such a compiler > >and reached an overly general conclusion. > > I had that book at one time. The book was explicitly for Borland C++. Not very explicitly: Introduction xvii About This Book This book teaches ANSI standard C. This ensures that your knowledge will be applicable to the widest range of C environments. -- pete