hi,
in both cases, j is still 1;
This is post increment then i still keeps value 1 in
the expression, and after the execution of the
expression, it gets value 2.
regards,
--- saravanan kumar <[EMAIL PROTECTED]>
wrote:
> hi friends,
>
> hw assignment operator is executing?
>
> for example,
>
> int i=1,j,k;
>
> i++ + (j=i);
>
> nw the j value is 2; // i is incremented and
> assgined., eventhough it is post incr
>
> k = i++ + (j=i);
>
> nw the j value is 1. // wht happned here??
>
> please explain the sequence point for assignment
> operator., like where it can be change the memory
> value.,
>
>
> ---------------------------------
> Once upon a time there was 1 GB storage in your
> inbox. Click here for happy ending.
>
> [Non-text portions of this message have been
> removed]
>
>
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news,
photos & more.
http://mobile.yahoo.com/go?refer=1GNXIC