On 8/1/07, 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]
>
>
>
I assume it to be compiler dependent. The order( Right to Left, or Left to
Right) in which the arguments are pushed to stack will determine the result.
--
Regards
Sumit Chawla ("eNetra : Hail the Invention")
"Computers are useless. They can only give you answers.":Pablo Picasso
[Non-text portions of this message have been removed]