ARRAY_SIZE[10] = {0};
int i;
for(i = 0; i < ARRAY_SIZE; ++i ) {
printf("Before assignment %d\n", array_of_ints[i]);
}
I was expecting the print out result be 0 thru 9, since ++i
increments i
. And on the second loop it will print out 1, on the following 2, and so on. However, it prints out 0 ten times. Why is that? Thanks ahead.