单选题 C语言
题号 #4244569

有以下程序:

程序运行后的输出结果是(  )。

进入在线模考

参考答案

A

答案解析

本题中第一次调用为fun(8,fun(5,6)),因为fun(5,6)返回值为5,所以第二次调用为fun(8,5)=6。所以选择A。

你可能感兴趣的试题

A.do{*t++=*s++;}while(*s); 
A.do{*t++=*s++;}while(*s); 
A.k=f(a,b); 
B.for(i=0;t[i]=s[i];i++);
B.for(i=0;t[i]=s[i];i++);
B.k=add(a,b); 
C.while(*t=*s){t++;s++;}
C.while(*t=*s){t++;s++;}
C.k=(*f)(a,b);
D.for(i=0,j=0;t [i++]=s[j++];);
D.for(i=0,j=0;t [i++]=s[j++];);
D.k=*f(a,b);
A.int n, * p=NULL
A.int n, * p=NULL
A.int n, * p=NULL
B.* P=&N
B.* P=&N
B.* P=&N
C.scanf("% d" ,&p)
C.scanf("% d" ,&p)
C.scanf("% d" ,&p)
D.printf("% d/n" ,p)
D.printf("% d/n" ,p)
D.printf("% d/n" ,p)
A.int N=10;int x[N]:
A.int N=10;int x[N]:
B.#define N l0  int x[N];
B.#define N l0 ; int x[N];
C.int x[0..10];
C.int x[0..10];
D.int x[];
D.int x[];
找试题 · 找答案 · 找资料 在线模考