但是定义了之后又有提示warning C4700:local variable 'count' used without having been initialized

问题描述:

但是定义了之后又有提示warning C4700:local variable 'count' used without having been initialized

变量count在使用前未被初始化,比如:
int count;// count没有赋值,但后面就打印它.应该先给count赋值,可以写成count = 0;
printf("%d", count);