I am sorry for the previous post.
The answer comes out to be 10.

I was trying to evaluate values at each step using the code:
*int y=(a=x++) + (b=++x) + (c=++x) + (d=x++)*
Then y would have been 12.

But with the given code, answer comes out to be 10 only.

Why is this?

-- 
Tushar Bindal
Computer Engineering
Delhi College of Engineering
Mob: +919818442705
E-Mail : [email protected]
Website: www.jugadengg.com

-- 
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