|
test.h是我写的一个函数吧(不知道是不是)
请看:
linux# gcc test1.c
linux# ./a.out
-1073743380
linux# cat test1.c
#include <test.h>
main()
{
int a=2,b;
b=pri(a);
printf("%d\n",b);
}
linux# cat /usr/include/test.h
pri()
{int x;
return x;
}
linux#
我就只是返回了x 怎么会打印出一个奇怪的数:ask :ask 我的要求是只返回x的值。 |
|