单项选择题
有以下程序
#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
点击查看答案&解析
相关试题
以下程序的输出结果是 【14】 。 #in...
若要在C盘根目录下作为二进制文件打开文件t...
表达式x.operator++( )还可写成 【...
友元类的所有成员函数都是另一个类的 【1...
【11】 是实现C++语言编译时多态性的...