could you or anyone else xplain the output to me for the code as follows -:
int a,b,c;
a=0;
b=0;
c=(a++)+(++a)+(++a);
printf("a=%d\n",a);
printf("b=%d\n",b);
printf("c=%d\n",c);
I felt the output should be a=3,b=0,c=5..
however correct output is
a=3
b=0
c=4