code:
i = 7; j = 8; k = 9;
printf("%d", (i = j) || (j = k));
printf("\n");
printf("%d %d %d", i, j, k);
... i get
1
7 8 9
...why is the answer:
1
8 8 9
?
also...
code: i = 1; j = 1; k = 1;
printf("%d", ++1 || ++j && ++k);
printf("\n");
printf("%d %d %d", i, j, k);
...i get
1
1 1 1
.... why is the answer:
1
2 1 1
??
basically i'm wondering WHY 'i' is the only one being recalibrated (and what the reason for that is)