阅读下列程序,写出程序运行的输出结果。
voidmain()
{intx=5;
f(x);f(x);
printf("%d\n",x);/*调用f(x)函数与x的值无关*/
}
intf(inty)
{staticintZ=0;
Z++;y+=z;
retum(y);
}
【正确答案】:输出结果:
5
阅读下列程序,写出程序运行的输出结果。 voidmain() {intx=5; f(x);f(x); printf("%d\n"
- 2024-11-06 17:19:51
- 高级语言程序设计(13013)