Another silly question

Doug Gwyn gwyn at smoke.BRL.MIL
Thu May 18 12:31:58 AEST 1989


In article <2336 at Portia.Stanford.EDU> mesmo at 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.
-	The statement that *(a+i) == *(i+a) is therefore invalid.

100% wrong!  If you don't know C any better than that, you should avoid
causing confusion and refrain from posting such misinformation.



More information about the Comp.lang.c mailing list