p[1] vs. *(p+1)
Steve Emmerson
steve at groucho.ucar.edu
Mon Sep 3 03:13:54 AEST 1990
In <0901 at sheol.UUCP> throopw at sheol.UUCP (Wayne Throop) writes:
>Or to try putting it another way, I think it is misleading to say that
>"adding one to p 'really' adds sizeof(*p) to p". I disagree. I say it
>"really" adds 1, and the result points at an element in the array into
>which p points which is offset exactly 1 array element from where p
>points.
Isn't the point moot if a conforming program can't tell the difference?
Steve Emmerson steve at unidata.ucar.edu ...!ncar!unidata!steve
More information about the Comp.lang.c
mailing list