0

Hello Everybody,
I have just come across this particular piece of code in a C problem set

main()
{
      int i=5,j=6,z;
      printf("%d",i+++j);
}

The answer for this question is 11 because C evaluates this as i++ +j. But why cant this be evaluated as i+ ++j.
Is there any reason behind this ?

Edited by abhimanipal: n/a

3
Contributors
3
Replies
4
Views
7 Years
Discussion Span
Last Post by SpyrosMet
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.