Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!rutgers!att!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.lang.c Subject: a[i] vs. *(a+i) Message-ID: <9386@alice.UUCP> Date: 23 May 89 20:25:23 GMT Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 11 I would be not the least bit surprised to find that some C compilers generate different machine code for a[i] and *(a+i). The most likely reason is that the compiler realizes that a[i] is a common usage and has some hack to recognize it and generate particularly efficient code. If the code for a[i] and *(a+i) do different things, though, the compiler is broken. -- --Andrew Koenig ark@europa.att.com