int i=3;
int k=i++ + ++i;
int j=i++ + ++i + ++i + i++ + i++; /*is this statement compiler dependent?*/
printf("K=%d j=%d",k,j);
and second one is
j=-i++;
In this expression which operation is performed first; both are right to left associative and having same precedence. Actually I want to know the concept of Associativity and Precedence in context of Unary operator using this example.