以下程序的输出结果是【 】。 class Program { public static void Main(string[] args) { int[] a = new int[3] { 1, 2, 3 }; for (int i = 0; i < 3; i++) Console.Write("{0} ", a[i]); Console.WriteLine(); int[] b = a; for (int i = 0; i < 3; i++) b[i] = 2 * b[i]; for (int i = 0; i < 3; i++) Console.Write("{0} ", a[i]); Console.WriteLine(); Console.Read(); } }[/i][/i][/i][/i]
以下程序的输出结果是【 】。 class Program { public static void Main(string[] args) { int[] a = new int[3] { 1, 2, 3 }; for (int i = 0; i < 3; i++) Console.Write("{0} ", a[i]); Console.WriteLine(); int[] b = a; for (int i = 0; i < 3; i++) b[i] = 2 * b[i]; for (int i = 0; i < 3; i++) Console.Write("{0} ", a[i]); Console.WriteLine(); Console.Read(); } }[/i][/i][/i][/i]
以下程序的输出结果是 main() { int i, k, a[10], p[3]; k=5; for (i=0;i<10;i++) a[i ]=i; for (i=0;i<3;i++) p[i ]=a[i *(i+1)]; for (i=0;i<3;i++) k+=p[i] *2; printf("%d ",k); }[/i]
以下程序的输出结果是 main() { int i, k, a[10], p[3]; k=5; for (i=0;i<10;i++) a[i ]=i; for (i=0;i<3;i++) p[i ]=a[i *(i+1)]; for (i=0;i<3;i++) k+=p[i] *2; printf("%d ",k); }[/i]
unsigned short array[]={1,2,3,4,5,6,7}; int i = 3; *(array + i) = ?
unsigned short array[]={1,2,3,4,5,6,7}; int i = 3; *(array + i) = ?
下面代码的输出结果是: 。ls = [[1,3,6],[4,6,3],[2,8,5]]sum1,sum2 = 0,0for i in range(3):sum1 = sum1 + ls[i][i]sum2 = sum2 + ls[i][2-i]print("sum1={},sum2={}".format(sum1,sum2))[/i][/i][/i]
下面代码的输出结果是: 。ls = [[1,3,6],[4,6,3],[2,8,5]]sum1,sum2 = 0,0for i in range(3):sum1 = sum1 + ls[i][i]sum2 = sum2 + ls[i][2-i]print("sum1={},sum2={}".format(sum1,sum2))[/i][/i][/i]
x = [ i for i in range(0, 10, 3) ] x中包含3.
x = [ i for i in range(0, 10, 3) ] x中包含3.
以下程序的输出结果是。 main()[br][/br] {intm[]={1,4,7}; inti; for(i=0;i[3;i++)< span=""] {printf("%d",m[i]);} }[/i]
以下程序的输出结果是。 main()[br][/br] {intm[]={1,4,7}; inti; for(i=0;i[3;i++)< span=""] {printf("%d",m[i]);} }[/i]
已知 vec=[[1,2],[3,4]],则表达式[[row[i] for row in vec] for i in range(len(vec[0]))]的值为( )[/i]
已知 vec=[[1,2],[3,4]],则表达式[[row[i] for row in vec] for i in range(len(vec[0]))]的值为( )[/i]
阅读下面程序: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
阅读下面程序: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
constlength=4;constnumbers=[];vari;for(i=0;i A: 3 B: C: 4 D: 5
constlength=4;constnumbers=[];vari;for(i=0;i A: 3 B: C: 4 D: 5
以下程序段的运行结果是( )。 int a[]={1,2,3,4},i,j; j=1; for(i=3;i>=0;i--) {a[i]=a[i]*j; j=j*3; } for(i=0;i<4;i++) printf("%d [/i][/i]
以下程序段的运行结果是( )。 int a[]={1,2,3,4},i,j; j=1; for(i=3;i>=0;i--) {a[i]=a[i]*j; j=j*3; } for(i=0;i<4;i++) printf("%d [/i][/i]