black

CPP考试

登录

单项选择题


1)#include < iostream >

2)# include < math.h >

3)using namespace std;

4)double max(double x,doubley);

5)void main()

6){

7)double   a,b,c;

8)cout << " input two numbers:\n";

9)cin>>a>>b;

10)c=max(a,b);

11)cout<< " the squart of max imum="<< sqrt(c);

12)}

13)double max(doublex,doubley)

14){

15)if(x>y)

16)returnx;

17)else

18)returny;

19)}


若执行第9行时,输入89后按回车,则执行完第19行后,max函数的返回值是:()

A.8
B.8.0(小数位数由编译器决定)
C.9
D.9.0(小数位数由编译器决定)

相关考题

单项选择题 若执行第9行时,输入89后按回车,则执行到14行时,x的值是:()

单项选择题 该程序第4行的作用是()。

单项选择题 程序执行第9行时,若输入23后按回车,则内存中a的值为:()

All Rights Reserved 版权所有©易学考试网(yxkao.com)

备案号:湘ICP备2022003000号-3