++i++ in Plain English
Blair P. Houghton
bhoughto at hopi.intel.com
Wed Apr 17 03:20:50 AEST 1991
In article <5ywa15w164w at cellar.UUCP> rogue at cellar.UUCP (Rogue Winter) writes:
>++i Increment i and use the new value in expression (calculation).
>i++ Use [old] value of i in expression and THEN increment.
>All this talk about discarding values is confusing and misleading. i retains
>its value until the function is exited (assuming i is local).
Yes, you're right, most of it is moot, but remember that
the entire operation is permitted to be "discarded" if
the value of i is never used again in the rest of its
current scope.
--Blair
"Optimization is irrelevant
because it is not prohibited..."
More information about the Comp.std.c
mailing list