学用for循环时输出不正确的值
# include <stdio.h># include <windows.h>
int main(void)
{
int i, sum;
for (i = 1; i <= 4; ++i);
sum = sum + i:
prantf(" sum = %d", &sum);
system("pause");
return 0;
}
源码是这样的 输出结果是SUM=347556,SUM=18120740等 编译一次结果不同一次 用的是VS2013