#include <stdio.h>
#include <stdlib.h>
void Func(int x)
{
x=20;
}
int main()
{
int x=10;
Func(x);
printf("%d",x);
return 0;
}
总结:运行结果之所以是10,是因为函数没有调用成功。
#include <stdio.h>
#include <stdlib.h>
void Func(int x)
{
x=20;
}
int main()
{
int x=10;
Func(x);
printf("%d",x);
return 0;
}
总结:运行结果之所以是10,是因为函数没有调用成功。