Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!uccba!mead!dem From: dem@mead.UUCP (Dave Myers) Newsgroups: comp.lang.c Subject: Re: What's a C expert? Message-ID: <340@mead.UUCP> Date: 26 Aug 89 17:52:13 GMT References: <12214@well.UUCP> <6057@microsoft.UUCP> <1336@atanasoff.cs.iastate.edu> <338@mead.UUCP> <4847@omepd.UUCP> Reply-To: dem@mead.UUCP (Dave Myers) Distribution: all Organization: Mead Data Central, Dayton OH. Lines: 27 In article <4847@omepd.UUCP> merlyn@iwarp.intel.com (Randal Schwartz) writes: >In article <338@mead.UUCP>, dem@mead (Dave Myers) writes: >[...] >| Hmmm.... I don't claim to be a C expert Here I go on to prove it. :) >| i[a] == *(i + (a * sizeof(int))) >... The scaling happens during the "addition" >(which isn't really addition) of a pointer and an integer BY >DEFINITION. This definition just happens to make the array "operator" >commutative. I am enlightened. Or rather, I realize I probably should have figured it out if I had thought harder, but I didn't. Thank you for the correction. > Just another longtime C hacker... Just another shorttime C/C++ progammer. -- David Myers (513) 865-1343 Mead Data Central This Data Fabrication Technology P.O. Box 933 space mead!dem@uccba.uc.edu Dayton, Ohio 45401 available. ...!uccba!mead!dem