问题
单项选择题
有以下程序:
#include <stdio.h>
fun(int a, int b)
if(a>b) return(
A.;
else return(
B.;
&n
答案
参考答案:D
解析: 本题考查函数的返回值。fun函数的功能是比较a,b的值,返回其中较大者。对于main函数中的语句r=fun(fun(x,y),2*z);是先调用fun(x,y)返回8,再将8和12作为实参调用函数fun,得到的返回值为12。