Hi,
I am just beginning to learn C and I have come across a program that I just can't understand the result of. I was hoping someone would be so kind as to explain it to me and I am sure it is pretty simple. I understand the concept of the the for statement but this program has stumped me.
*edited
The output is : 7 5 3 1Code:int i = 9; for (i--; i--; i--) printf("%d", i);
I am confused from the beginning here. i is initially 9 and in the for statement it is initialized as 1++ which I thought would mean it is 8.
Thanks.