int main ( )
{
int i, list[10] = {0};
for (i = 0; i < 5; i ++)
list[2 * i + 1] = i + 3;
for (i = 0; i < 10; i++)
printf(“%d\n”, list[i]);
return 0;
}
I know the answer is 0 3 0 4 0 5 0 6 0 7
but how do we get this? can tell me???
更新1:
to sushil c : erm.. may i know why elements in vector with even index wont change and it still be 0? Thanks a lot.. =)