通过运行这段代码
char array[6];
int i;
for ( i = 0; i < 6; ++i )
printf("%i ", array[i]);
可能的输出:
64 0 -64 77 67 0
我总是得到最后一个元素0,尽管我期望得到随机值。这是编译器相关的吗?我正在使用gcc。