(单选题)
若有函数定义:int fun(){doublex=23.5;returnx;},则函数的返回结果是()
A23
B23.0
C23.5
D24
正确答案
答案解析
略
相似试题
(单选题)
若有函数定义:double fun(int a[10]){...},则在对该函数进行原型声明时,错误的声明语句是()
(单选题)
若有类W说明class W{int a;public:voidfConst(int&)const;};,则函数fConst的正确定义是()
(单选题)
若有类T说明class T{inti;friend void fFriend(T&,int);};,则函数fFriend的错误定义是()
(单选题)
若有以下定义 chars=’/092’; 则该语句()
(单选题)
若有以下函数调用语句,在此函数调用语句中实参的个数是()。 fun(a+b,(y=10,y),fun(n,k,d));
(单选题)
若有一个MyClass类,则执行语句”MyClass,a,b(2),*p;”后,自动调用该类的构造函数()次。
(单选题)
若有定义int a=9,b=6;则a
(单选题)
若有定义chara4[]=newchar[5];则length的值为()
(单选题)
若有定义Stringtom="我们是学生";则tom.length()的值是()
![快考试在线搜题](http://static.examk.com/pc/images/qrcode.gif)