Re: lvalue with increment operators



 DEVELOP > c-Plus-Plus > Re: lvalue with increment operators

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1
Topic: DEVELOP > c-Plus-Plus
User: "Ron Natalie"
Date: 08 Jul 2003 09:26:08 AM
Object: Re: lvalue with increment operators
"srinivas reddy" <srinivasreddy_m@yahoo.com> wrote in message news:ff8ef364.0307071740.d4d59a5@posting.google.com...

So when I say x++, does this sequence get executed?
t = x;
x += 1;
return t;

Conceptually, but not necessarily in sequence. All you know when you do x++
is that the value of the expression is the value at x prior to the expression and
that some time prior to the next sequence point x will be incremented.
.

 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER