单项选择题
以下程序输出结果是 ______。 #include<iostream.h> void fun(int x,int y,int z){z=x+y;} void main() { int a=10; fun (2,2,a); cout<<a; }
A.0
B.4
C.10
D.无定值
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
设char str1[11]= HELLO, ,str2[10]=“world”;则执行语句 cout<<strlen(strcpy(str1,str2)));后的输出结果是 ______。
A.12
B.11
C.7
D.5
点击查看答案
单项选择题
下列程序中说明的私有成员是 ______。 class Location{ int x; public: void init(int initX,int initY); private: int y; public: int SetX(); Int SetY();
A.x
B.y
C.SetX(),SetY()
D.B和A都是
点击查看答案
相关试题
基类的 [12] 不能被派生类的成员访问...
如果要把viod fun()定义为类X的友元函数...
ios类中定义的用于控制输入输出的枚举常量...
以下程序运行后的输出结果是 [10] 。...
分析下列程序,并写出运行结果 [9] 。...