定义 int a[]={2,4,6,8,10,12},p=a; 则*(p+5) 的值是 。 A.6 B.8 C.10 D.12
A: 12
B: 10
C: 8
D: 6
A: 12
B: 10
C: 8
D: 6
举一反三
- 若有定义:int a[ ] = {2, 4, 6, 8, 10, 12}, *p = a; ,则* (p + 1)的值是________。
- 若有定义:int a[]={2,4,6,8,10,12},*p=a;则*(a+4)的值是_ A: 10 B: 6 C: 4 D: 8
- 若有定义:int a[]={2,4,6,8,10,12},*p=a;则*(p+1)的值是( ) *(a+5)的值是( ) A: 4 12 B: 4 10 C: 2 8 D: 5 17
- Which statement below initializes array items to contain 3 rows and 2 columns? ( ) A: int[][] items = {{2, 4}, {6, 8}, {10, 12}}; B: int[][] items = {{2, 6, 10}, {4, 8, 12}}; C: int[][] items = {2, 4}, {6, 8}, {10, 12}; D: int[][] items = {2, 6, 10}, {4, 8, 12};
- 如下代码的运行结果为:( ) A: array([[-10, -8, -6, -4, -2],[ 0, 2, 4, 6, 8]]) B: array([[ 1, 2, 3, 4, 5],[ 6, 7, 8, 9, 10]]) C: array([[-11, -10, -9, -8, -7],[ -6, -5, -4, -3, -2]]) D: array([[12, 12, 12, 12, 12],[12, 12, 12, 12, 12]])