Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!sdd.hp.com!mips!cs.uoregon.edu!ogicse!intelhf!ichips!iwarp.intel.com!inews!hopi!bhoughto From: bhoughto@hopi.intel.com (Blair P. Houghton) Newsgroups: comp.std.c Subject: Re: ++i++ in Plain English Message-ID: <3845@inews.intel.com> Date: 16 Apr 91 17:20:50 GMT References: <5ywa15w164w@cellar.UUCP> Sender: news@inews.intel.com Organization: Intel Corp, Chandler, AZ Lines: 14 In article <5ywa15w164w@cellar.UUCP> rogue@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..."