[comp.lang.c] a[i] vs. *

ark@alice.UUCP (Andrew Koenig) (05/24/89)

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