🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2758

Re: ++i++ in Plain English

#2758
From: Blair P. Houghton
Date: Tue, 16 Apr 1991 17:20
14 lines
1090 bytes
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..."
Technical Details
Message-ID: <3845@inews.intel.com>
Path: arc1-ca.pugleaf.net!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
References: <5ywa15w164w@cellar.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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