网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
1)#include
2)#include
3)using namespace std;
4)double max(double x,doubley)
5){
6)if(x>y)
7)return x;
8)else
9)return y;
10)}
11)int main()
12){
13)doublea,b,c;
14)cout > a >> b;
16)c=max(a,b);
17)cout <<" the squart of max imum="<< sqrt( c );
18)}
执行第15行时,若输入“8空格9回车”,则第4行中,y的值是:()
A
0
B
随机值
C
9
D
9.0000000000000000
参考答案
参考解析
解析:
y是函数max()的形式参数,当调用函数max()时,系统会为形式参数y分配内存空间,并将实际参数b的值9.0000000000000000传递给形式参数y。
更多 “单选题1)#include 2)#include 3)using namespace std; 4)double max(double x,doubley) 5){ 6)if(xy) 7)return x; 8)else 9)return y; 10)} 11)int main() 12){ 13)doublea,b,c; 14)cout a b; 16)c=max(a,b); 17)cout " the squart of max imum=" sqrt( c ); 18)} 执行第15行时,若输入“8空格9回车”,则第4行中,y的值是:()A 0B 随机值C 9D 9.0000000000000000” 相关考题
考题
单选题铁路工程中,下述对预应力张拉用千斤顶校正的技术要求不正确的是()A
校正有效期为8个月且不超过200次张拉作业B
千斤顶校正系数不得大于1.05C
拆修更换配件后的张拉千斤顶必须重新校正
考题
判断题煤气热风炉点火开工前应先开热风机清扫炉爣。A
对B
错
热门标签
最新试卷