单选题 C++
题号 #2607235

下列程序的输出结果是(    )。
#include<iostream.h>
int rain(iltl a,int B)
{
if(a<B.return a;
else retum b;
retum 0;
}
void main()
{
eout<<min(1,min(2,3))<<endl;
}

进入在线模考

参考答案

B

答案解析

本题考查的是函数的调用,第一次调用min(2,3),因为2<3,所以返回值为2,第二次调用min(1,2),因为l<2,所以返回1。

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考