单项选择题
有以下程序
#include<iostream.h>
void fun(int a,int b,int c)
a=456,b=567,c=678;
void main( )
int x=10,y=20,z=30;
fun(x,y,z);
cout << x << ’ , ’ << y << ’ , ’ << z < endl;
输出结果是
A.30,20,10
B.10,20,30
C.456,567,678
D.678,567,456
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有如下程序 #include<iostream.h> int func(int a,int b) return(a+b) ; void main( ) int x=2,y=5,z=8, r; r=func ( func(x,y),z); cout << r; 该程序的输出的结果是
A.12
B.13
C.14
D.15
点击查看答案&解析
单项选择题
下列程序的输出结果是 #include<iostream.h> class Myclass public : Myclass( int i=0,int j=0) x=i; y=j; void show( )cout<< x= <<x<< < y= <<y<<endl; void show( )constcout<< x= << << y= <<y<<endl; privated: int x; int y; ; void main( ) Myclass my l (3,4); const my2(7,8); my l.show( );my2.show( );
A.x=4,y=3;x=7,y=8
B.x=3,y=4;x=7,y=8
C.x=7,y=8;x=4,y=3
D.x=8,y=7;x=7,y=8
点击查看答案&解析
相关试题
在数据流图(DFD) 中,带有名字的箭头表示
若有如下语句 #include<iostream.h> ...
this指针是C++语言实现什么的一种机制
执行语句for(i =1++<4;);,后变...
线性表L=(a1,a2,a3,…ai,…an),...