Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!husc6!rutgers!att!westmark!mole-end!mat From: mat@mole-end.UUCP (Mark A Terribile) Newsgroups: comp.lang.c Subject: Re: Another silly question Summary: minor correction on a[i] Message-ID: <157@mole-end.UUCP> Date: 29 Apr 89 07:00:07 GMT References: pointer array reference access element <2459@nmtsun.nmt.edu> <155@mole-end.UUCP> Organization: mole-end--private system. admin: mole-end!newtnews Lines: 19 > > *(a + i) and a[i] > > are equivalent, given an array a, and int index i ... [ ARE THEY?? ] > Oy vey! Of course ... that is how subscripting is *defined* in C. ... > K&R state quite literally that the two expressions are identical, and [that] > a[ i ] is the same as i[ i ] Of course, that should read a[ i ] is the same as i[ a ] Pardon my gaffe! Is this group c.beginners ? -- (This man's opinions are his own.) From mole-end Mark Terribile