difference between c++; and ++c;

Tim Pierce twpierce at amherst.bitnet
Mon Apr 15 06:15:16 AEST 1991


In article <1991Apr10.094402.28033 at tkou02.enet.dec.com>, diamond at jit345.swstokyo.dec.com (Norman Diamond) writes:
> In article <3730 at inews.intel.com> bhoughto at nevin.intel.com (Blair P. Houghton) writes:
>>    i += 1;	"Increment i."
> Nope; it's
>      i += 1;    "Increment i then discard the resulting value"
> 
> (as opposed to  j = (i += 1);  "Increment i then use the resulting value")

Look, technically, that's "Increment i, assign the resulting value to j, then
discard it."  But so what?

-- 
____ Tim Pierce                     / Eat a live toad first thing in the
\  / BITnet: twpierce at amherst       / morning, and nothing worse will
 \/  Internet: twpierce at amherst.edu / happen to you the rest of the day.

   Never underestimate the bandwidth of a station wagon filled with tapes.



More information about the Comp.lang.c mailing list