Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!att!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.lang.c Subject: Re: Another silly question Message-ID: <9372@alice.UUCP> Date: 18 May 89 13:45:47 GMT References: <17812@cup.portal.com> <2336@Portia.Stanford.EDU> Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 14 In article <2336@Portia.Stanford.EDU>, mesmo@Portia.Stanford.EDU (Chris Johnson) writes: > When "+" denotes simple (ie int/float/etc) arithmetic, the > operation commutes; when it denotes pointer arithmetic, > commutation is not legal/meaningful. Yes it is. Addition of integers and pointers is commutative. > The statement that *(a+i) == *(i+a) is therefore invalid. No, the statment is true. -- --Andrew Koenig ark@europa.att.com