题目内容

下列程序的运行结果是()。#include int fun1(int x);void fun2();int x=5;int main(){ int x=1;x=fun1(x);printf("%d",x);return 0;}int fun1(int x){ x++;fun2();return x; }void fun2(){ x++; }

A. 5
B. 2
C. 7
D. 6

查看答案
更多问题

写出下列程序的运行结果_________。#include void Bin(int x){if (x/2 > 0) Bin(x/2);printf("%d", x%2);}int main(){Bin(12);return 0;}

被调函数中还可再调其它函数。()

A. 对
B. 错

递归调用分为直接递归和间接递归两种方式。()

A. 对
B. 错

若全局和局部变量同名,当局部变量可用时,全局变量就不起作用。()

A. 对
B. 错

答案查题题库