沒有RETURN的 int函數返回值是什么?
#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;
}
在這里的結果:
test of return,0
在LINUX上的結果:
test of return,4195644
沒有RETURN的 int函數返回值是什么?
2015-07-05
舉報
2015-07-05
#include<stdio.h> int?testreturn() { } int?main() { int?return1?=?testreturn(); printf("test?of?return,%d\n",return1); return?0; }