void main(void)
{
int a=0,b=3;
int c=0;
printf("%d\n",++a + b + ++a);
}
-------------------------------------------------------------------------------
If you compile this code in TC or Borand C , you can get 6 as the answer.
Why?-------------------------------------
void main(void)
{
int a=0,b=34;
int c=0;
c= ++a + b + ++a;
printf("%d\n",c);
}
--------------------------------------
And the result of the upper program is 7. Why?
Why is there such discrepancy?