Quote:
q=j++ + ++j + j++;
printf("%d %d",q,j);
getch();
clrscr();
q=j++ + ++j + ++j;
printf("%d %d",q,j);
getch();
}
|
ok we all agree that j=4 after the first equation
q=j++ + ++j + ++j but the computer really only do one operation at a time so this is the same as
q=j++ + ++j
q=q + ++j
the first one is 4+5=9 and j=6
secound one is 9+7=16