black

CPP考试

登录

单项选择题


1)#include < iostream >

2)#include < cmath >

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 <<" input two numbers:\n";

15)cin >> 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

相关考题

单项选择题 程序在第16行调用max()函数时,系统是否为第4行中的x,y分配存储空间:()

单项选择题 若执行第9行时,输入25后按回车,则执行完第10行后,x,y的值分别是:()

单项选择题 执行第19行时,系统会回收几个变量存储空间:()

All Rights Reserved 版权所有©PP题库网库(pptiku.com)

备案号:湘ICP备14005140号-5

经营许可证号:湘B2-20140064