Article View: comp.std.c
Article #2746++i++ in Plain English
From: Rogue Winter
Date: Fri, 12 Apr 1991 17:26
Date: Fri, 12 Apr 1991 17:26
12 lines
930 bytes
930 bytes
Deliberately not following any of the above, I think it's best to describe the difference between ++i and i++ as follows: ++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). rogue winter : "Never trust a gentleman any further than you can throw rogue@cellar.uucp: his valet."
Technical Details
Message-ID:
<5ywa15w164w@cellar.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!gvlf3.gvl.unisys.com!tredysvr!cellar!rogueShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!unix.cis.pitt.edu!gvlf3.gvl.unisys.com!tredysvr!cellar!rogue From: rogue@cellar.UUCP (Rogue Winter) Newsgroups: comp.std.c Subject: ++i++ in Plain English Message-ID: <5ywa15w164w@cellar.UUCP> Date: 12 Apr 91 17:26:39 GMT Sender: bbs@cellar.UUCP (The Cellar BBS) Organization: The Cellar BBS and public access system Lines: 12