假定int类型变量占用4个字节,若有定义:int[] x = new int[] {1,2,3,4,5,6}; 则数组x在内存中所占字节数是()。A.4B.12C.24D.48
假定int类型变量占用4个字节,若有定义:int[] x = new int[] {1,2,3,4,5,6}; 则数组x在内存中所占字节数是()。
A.4
B.12
C.24
D.48
参考答案和解析
24
相关考题:
●在某嵌入式系统中,采用PowerPC处理器,若定义了如下的数据类型变量X,则X所占用的内存字节数是(52).union data{int i;char ch;double f;} X;(52) A.8B.3c.16D.24
若有定义int x,*pb;则正确的赋值表达式是()。 A.pbB.int a[2] [ ]{1,2,3,4,5,6};C.int a[ ] [3]{1,2,3,4,5,6};D.int a[2,3]{1,2,3,4,5,6}
假定int类型变量占用4个字节,若有定义: int[] x=new int[10]{0,2,4,4,5,6,7,8,9,10}; 则数组x在内存中所占字节数是()A、 10B、 20C、 40D、 80
单选题假定int类型变量占用4个字节,若有定义: int[] x=new int[10]{0,2,4,4,5,6,7,8,9,10}; 则数组x在内存中所占字节数是()A 10B 20C 40D 80
填空题设有以下结构类型说明和变量定义,则变量a在内存所占字节数是(). struct stud { char num[8]; int s[4]; double ave; } a,*p;