在c#中,下列创建数组的语句是否合法?Int[]iArray=newint[null];()
第1题:
下面为合法的数组声明和构造语句的是_______。
A.int[] ages = [100];
B.int ages = new int[100];
C.int[] ages = new int[100];
D.int() ages = new int(100);
第2题:
下面合法的数组声明和构造语句是()
A.int[] ages = [100]
B.int ages = new int[100]
C.int[] ages = new int[100]
D.int() ages = new int(100)
第3题:
【单选题】在创建数组时,下列创建的方法中合法的是()。
A.int a[ ] [ ]=new a[10][5]
B.int a[]=new int[10 ]
C.int [ ]a=new a[10 ]
D.int a[]=new a[10 ]
第4题:
8、下面声明和创建数组的语句错误的是
A.int[] a=new int[12];
B.int[] c; c=new int[12];
C.int[] n={1,2,3,4,5};
D.int[] array = new int[3] {1,2};
第5题:
8、下面合法的数组声明和构造语句是()。
A.int[] ages = [100]
B.int ages = new int[100]
C.int[] ages = new int[100]
D.int() ages = new int(100)