单项选择题

假定int类型变量占用两个字节,其有定义int x [l0]= 0,2,4 ;,则数组x在内存中所占字节数是

A.3
B.6
C.10
D.20

<上一题 目录 下一题>
热门 试题

单项选择题
有以下程序 #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
相关试题
  • A.return(a+B) ;B.int func(int ...
  • A.12B.13C.14D.15
  • D
  • 下面程序的结果是 #include<iostream.h...