单项选择题

有以下程序
#include
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 < < end1;

输出结果是

A.30,20,10
B.10,20,30
C.456,567,678
D.678,567,456
<上一题 目录 下一题>
热门 试题

单项选择题
下列程序的输出结果是 #include class Myclass public:Myclass(int i=0,intj=0) x=i; y=j; void show( ) cout < < x= < < x < < < y= < < y < < end1; void show( )const cout < < x= < < < < y=’ < < y < < end1; privated: int x; int y; ; void main( ) Myclass my1(3,4); const my2(7,8); my1.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
单项选择题
对于语句cout < < setfill('*') < < setw(10) < < 1 < < setfill('*') < < setw(2)< < 2;的输出结果是
A.* * * * * * * * * 1 * 2
B.* * * * * * * * 12
C.* * * * * * * 1 * 2
D.12 * * * * * * * *
相关试题
  • A.return(a+B) ;B.int func(int ...
  • A.12B.13C.14D.15
  • D
  • 下面程序的结果是 #include<iostream.h...
  • A.3B.6C.10D.20