运行结果为什么是随机数呢
#include<stdio.h>void f(int i)
{
int a;
int b;
i=a/b;
}
int main(void)
{
int j;
int x=9;
int y=3;
//scanf("%d",&x);
//scanf("%d",&y);
f(j);
printf("%d\n",j);
return 0;
}
运行结果为什么不对呢
#include<stdio.h> int f(int a,int b) { int i; i=a/b; return i; } int main(void) { int x=9; int y=3; // scanf("%d",&x); // scanf("%d",&y); printf("%d\n",f(x,y)); return 0; }
[此贴子已经被作者于2016-5-13 08:44编辑过]