Another silly question
Chris Torek
chris at mimsy.UUCP
Sat May 20 15:32:58 AEST 1989
In article <749 at mccc.UUCP> pjh at mccc.UUCP (Pete Holsberg) writes:
[in response to article <607 at kl-cs.UUCP> by pc at cs.keele.ac.uk (Phil Cornes)]
>Can you explain why compilers produce different code for "a[i]" and "*(a+i)"?
I have never observed one to do so. There is no reason for a compiler
to generate different code, as the expressions are semantically identical.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain: chris at mimsy.umd.edu Path: uunet!mimsy!chris
More information about the Comp.lang.c
mailing list