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 ?

Got it ... Thanks man

try using this (i+ (++j)) or this (i+ j++)
I hope it works for you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.