#include <stdio.h>
int main(void)
{
int j = 0;
for(int i = 0; i < 100; i++)
{
j = j++;
}
printf("%d\n",j);
return 0;
}
In the above program, I aspect 99
outputs of j
variable. but It's always print 0
.
I don't understand, Why j
always print 0
?