Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #1850

Re: Pre And Post Increment Operator Output

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date Fri, 22 Jun 2012 10:30:47 -0500
Date Fri, 22 Jun 2012 08:30:39 -0700
From Patricia Shanahan <pats@acm.org>
User-Agent Mozilla/5.0 (Windows NT 5.2; WOW64; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
MIME-Version 1.0
Newsgroups comp.programming
Subject Re: Pre And Post Increment Operator Output
References <8404c4f1-a3b7-46b7-ad9c-17de265f9aee@googlegroups.com><js02hp$jsl$1@dont-email.me> <js03uf$sb3$1@dont-email.me><js092m$pov$1@dont-email.me> <lnipek8bri.fsf@nuthaus.mib.org><js1gf5$l7v$1@dont-email.me> <0.06d3eacd14619c86d384.20120622143458BST.87ehp7o4fx.fsf@bsb.me.uk> <js21jb$963$1@dont-email.me>
In-Reply-To <js21jb$963$1@dont-email.me>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Message-ID <7MudnTZhnIs6EnnSnZ2dnUVZ_qCdnZ2d@earthlink.com> (permalink)
Lines 14
X-Usenet-Provider http://www.giganews.com
NNTP-Posting-Host 70.230.202.8
X-Trace sv3-wvKIREVzcwNJ6e8YL0tKntk9oSlg6ruycckthV+6pb4eZOo7MiOhPwIdcK3Knw8tgq3ThdacWvaBVCW!c3YLn3DF4I2EyShiDdJcj1P/3sATQBfOhM7yI8RgQe21VPr+PdbhehjDhKGwMCrulXzAoRL6JNEr!0u3RGgUmcb4lAtuqvVSg5V9kEwE2dltl4w9+6JxJBNUi
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 1947
X-Received-Bytes 2088
Xref csiph.com comp.programming:1850

Show key headers only | View raw


On 6/22/2012 8:02 AM, BartC wrote:
...
> This is all true. But I still think that if you ask for opinions as to the
> result of i=(++i)+(++i)+(++i), when i starts at 0, *outside the context of
> the C language*, then 6 is a strong contender.

In Java, i does have a specified resulting value. The effect will be the
same as i=3*i+6.

I don't understand what you mean by "outside the context of the C
language". How can a code snippet have any meaning at all except in the
context of a programming language?

Patricia

Back to comp.programming | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: Pre And Post Increment Operator Output "BartC" <bc@freeuk.com> - 2012-06-22 16:02 +0100
  Re: Pre And Post Increment Operator Output Patricia Shanahan <pats@acm.org> - 2012-06-22 08:30 -0700
    Re: Pre And Post Increment Operator Output "BartC" <bc@freeuk.com> - 2012-06-22 17:49 +0100
      Re: Pre And Post Increment Operator Output Patricia Shanahan <pats@acm.org> - 2012-06-22 10:36 -0700
        Re: Pre And Post Increment Operator Output "Chris Uppal" <chris.uppal@metagnostic.REMOVE-THIS.org> - 2012-06-23 09:57 +0100
      Re: Pre And Post Increment Operator Output Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-06-22 20:53 +0100
        Re: Pre And Post Increment Operator Output "BartC" <bc@freeuk.com> - 2012-06-22 21:35 +0100
          Re: Pre And Post Increment Operator Output Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-06-22 23:19 +0100
            Re: Pre And Post Increment Operator Output "BartC" <bc@freeuk.com> - 2012-06-23 01:15 +0100
  Re: Pre And Post Increment Operator Output Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-06-22 17:44 +0100

csiph-web