下面程序段的输出结果是( )。 public class Test {public static void main(String args[]){ int[] a=new int[11]; int[] p=new int[4];

admin2010-07-28  21

问题 下面程序段的输出结果是(    )。 public class Test {public static void main(String args[]){    int[] a=new int[11];    int[] p=new int[4];    int k=5;    for(int i= 1 ; i<= 10;i++)    a=i;    for(int i=1 ; i<=3;i++)    p=a[i*i];    for(int i= 1 ;i<=3;i++)    k=k+p*2;    System.out.println(k);  }}

选项 A、37
B、31     
C、33
D、35

答案4

解析
转载请注明原文地址:https://kaotiyun.com/show/KW9p777K
0

随机试题
最新回复(0)