Hello Reinier,

Thanks a lot. I get your point.

 " n holds value 10 [after int n = 10]
n holds value 11 [after n++]
n = 10 [after n = (result of n++)]  "

this part of your explanation is extremely helpful. No doubt with the
Java experience anymore!

But isn't the
precedence of unary operators Greater than "=" in C also ???

So I was wondering why the result in C is so wierd :-)


Hello Vinay,

"In C++ and Java post increment operator first assigns the value and
then
increments"

 the confusing part is that the "incrementation" did not take place :-(

-- 
You received this message because you are subscribed to the Google Groups 
"google-codejam" 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/google-code?hl=en.

Reply via email to