#include<stdio.h>
int testreturn()
{
}
int main()
{
int return1 = testreturn();
printf("test of return,%d\n",return1);
return 0;
}
在这里的结果:
test of return,0
在LINUX上的结果:
test of return,4195644
没有RETURN的 int函数返回值是什么?
#include<stdio.h> int testreturn() { } int main() { int return1 = testreturn(); printf("test of return,%d\n",return1); return 0; }