Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!accuvax.nwu.edu!tank!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: Another silly question Message-ID: <17635@mimsy.UUCP> Date: 20 May 89 05:32:58 GMT References: <17812@cup.portal.com><607@kl-cs.UUCP> <749@mccc.UUCP> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 9 In article <749@mccc.UUCP> pjh@mccc.UUCP (Pete Holsberg) writes: [in response to article <607@kl-cs.UUCP> by pc@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@mimsy.umd.edu Path: uunet!mimsy!chris