Member • Apr 13, 2007
Problem: Output of this C Code
{
int a = 1;
int c,d;
c = ++a + ++a + ++a;
printf("\n%d",a);
printf("\n%d ", c);
getch();
}
The above C code after the execution gives the values of 'a' and 'c' as '4' and '12' resp.
Can anyone explain, why it is so...