为什么输出一直是 50 10 50 呢?
#include <stdio.h>
int x = 77;
void fn1()
{
printf("fn1(): x=%d\n", x);
}
int main()
{
int x1= 10;
if(x1>0)
{
x = 100;
x /= 2;
printf("if语句内, x=%d\n", x);
}
printf("main方法内, x=%d\n", x1);
fn1();
return 0;
}
fn1()函数输出的不是77?错在哪 请问大神们