阅读下面程序:inti;intx[4][4]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};for(i=0;i<;4;i++)printf("%3d",x[i][3-i]);下列选项中哪一项是正确的输出结果()[/i]
A: 15913
B: 161116
C: 471013
D: 481216
A: 15913
B: 161116
C: 471013
D: 481216
举一反三
- 阅读下面程序: int i; int x[4][4] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }; for (i = 0; i<4; i++) printf("%3d", x[i][3 - i]); 下列选项中哪一项是正确的输出结果( )[/i]
- 定义:int i;int x[4][4]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};,则语句for(i=0;i<4;i++) printf("%3d",x[i][3-i]);的输出是[/i] A: 1 5 9 13 B: 1 6 11 16 C: 4 7 10 13 D: 4 8 12 16
- 阅读下面程序: int i; int x[4][4] = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16 }; for (i = 0; i<4; i++) printf("%3d", x[i][3 - i]); 下列选项中哪一项是正确的输出结果
- 定义如下变量和数组int i;int x[4][4]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};则下面语句的输出结果是:for(i=0;i<4;i++) printf("%3d",x[i][3-i]);[/i] A: 1 5 9 13 B: 1 6 11 16 C: 4 7 10 13 D: 4 8 12 16
- 已知 vec = [[1,2], [3,4]],则表达式 [[row[i] for row in vec] for i in range(len(vec[0]))]的值为______________()_________。[/i] A: [1, 2, 3, 4] B: [[1, 2, 3], 4] C: [[1, 3], [2, 4]] D: [1, 2, [3, 4]]