单项选择题
以下程序输出结果是 ______。 #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都是
点击查看答案
相关试题
A
下列陈述中正确的是 ______。
关于动态联编的下列叙述中, ______...
下列关于二定义性的说法错误的是 ____...
下列不能被重载的运算符是 ______。