[求助]大家帮忙看看 错哪了???
#include<stdio.h> int sum(int x,int y) { int z; z=x+y; return z; } void main() { int a=1,b=2,c; sum(a,b); printf("c=%d\n",c); }
最后应该输出 3 ,可是运行后却输出-858993460
注:我是用VC++ 调试的 这是错误信息:warning C4700: local variable 'c' used without having been initialized