I am pretty much a java programmer so this baffled me. I did a quite a bit of reading and it seems like the answer you're looking for is here:
http://c-faq.com/expr/evalorder2.html Hopefully that satisfies you. :) On Aug 14, 2:54 pm, sumon <[email protected]> wrote: > #include<stdio.h> > void main() > { > int j=2,k; > k=++j + ++j + ++j; > printf("%d",k); > > } > > In GCC compiler why is it giving 13?? -- 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.
