我把教程图片里面的程序编出来,发现运行不了???
#include <stdio.h>
int x = 1;
int fn1(int x)
{
int y,z;
z = 2;
y = x+z;
printf("y=%d\n",y);
return 0;
}
int main()
{
fn1(2);
int y = 10;
printf("x+y=%d",y+x);
return 0;
}
#include <stdio.h>
int x = 1;
int fn1(int x)
{
int y,z;
z = 2;
y = x+z;
printf("y=%d\n",y);
return 0;
}
int main()
{
fn1(2);
int y = 10;
printf("x+y=%d",y+x);
return 0;
}
2019-08-07
举报