@sagar
would it get evaluated like this ?
supposing x = 3;

y = x++ + ++x; becomes y = (x=x+1) + (x=x+1);
then x=x+1;

so x = 5, y = 8;

On Sat, Jul 23, 2011 at 2:48 PM, sagar pareek <[email protected]> wrote:

> @Venga
> if u are doing this
> y= x++ + ++x; //x=3
> then it would be
> like that :-
> ++x; //x=4
> y=x+x;
> x++;
>
> i thing this is sufficient  :)
>
> On Sat, Jul 23, 2011 at 1:20 PM, Interstellar Overdrive <
> [email protected]> wrote:
>
>> The expression y = x++ + x++ + ++y;  is not a valid one. The result is
>> compiler dependent
>> Read this for reference :http://c-faq.com/expr/seqpoints.html
>>
>>
>>
>>
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/algogeeks/-/-DWyCxlftwgJ.
>>
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
>
>
> --
> **Regards
> SAGAR PAREEK
> COMPUTER SCIENCE AND ENGINEERING
> NIT ALLAHABAD
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to