[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$foa0vO8FjLmCD9x1zZ9vDdt1keFtdOG6_b4RL94IVPD0":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":16,"related":17,"source":28,"type":29},[],"2023-12-03 15:21:26",110489553,[8,9,10,11],"一个数组只允许存储同种类型的数据","数组名是数组在内存中的首地址","数组必须先定义,后使用","如果在对数组进行初始化时,给定的数据元素个数比数组元素少,多余的数组元素自动初始化为最后一个给定元素的值",{"courseId":13,"courseImg":14,"courseName":15},"b1afca73772e77861efb04c34e00aa74","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002Fc15d9a9e79f9d31127b1aa54091699f6.jpg","高级语言程序设计","下列关于数组的描述中错误的是( )",[18,30,39,48,57,66,75,84,93,102],{"answer":19,"createTime":20,"id":21,"options":22,"question":27,"source":28,"type":29},[],"2023-12-03 15:21:25",110489541,[23,24,25,26],"x[10]= &quot;Hello! &quot;","x=&quot;Hello! &quot;","x[]=&quot;Hello! &quot;","for(i=0; i&lt;6; i++) x[i]=getchar()","已定义&quot;int i; char x[10];&quot;,为了给x数组赋值,以下正确的语句是( )","v1",0,{"answer":31,"createTime":20,"id":32,"options":33,"question":38,"source":28,"type":29},[],110489543,[34,35,36,37],"a数组和b数组长度相同","a数组长度大于b数组长度","a数组长度小于b数组长度","两个数组中存放相同的内容","若有以下的数组定义:&quot;char a[ ]=&quot;abcd&quot;; char b[ ]={'a','b','c','d','e'};&quot;,则以下正确的描述是( )",{"answer":40,"createTime":20,"id":41,"options":42,"question":47,"source":28,"type":29},[],110489544,[43,44,45,46],"2 5 8","2 6 10","4 7 10","4 6 8","若有定义&quot;int i; int x[3][3]={2,3,4,5,6,7,8,9,10};&quot;,则执行语句&quot;for(i=0;i&lt;3;i++) printf(&quot;%4d&quot;,x[i][2-i]);&quot;的输出结果是( )",{"answer":49,"createTime":20,"id":50,"options":51,"question":56,"source":28,"type":29},[],110489545,[52,53,54,55],"int a[2][3]={{1,2},{3,4},{5,6}}","int a[ ][3]={1,2,3,4,5,6}","int a[2][ ]={1,2,3,4,5,6}","int a[2][ ]={{1,2},{3,4}}","下列对二维数组a进行正确初始化的是( )",{"answer":58,"createTime":20,"id":59,"options":60,"question":65,"source":28,"type":29},[],110489546,[61,62,63,64],"数组的下标可以是float类型","数组的元素的类型可以不同","初始化列表中初始值的个数多于数组元素的个数也是可以的","区分数组的各个元素的方法是通过下标","下列说法正确的是( )",{"answer":67,"createTime":5,"id":68,"options":69,"question":74,"source":28,"type":29},[],110489547,[70,71,72,73],"if(strcmp(str1,str2)) printf(&quot;%s&quot;,str1)","if(strl1&gt;str2) printf(&quot;%s&quot;,str1)","if(strcmp(str1,str2)&gt;0) printf(&quot;%s&quot;,str1); else printf(&quot;%s&quot;,str2)","if( strcmp(str1)&gt;strcmp(str2)) printf(&quot;%s&quot;,str1)","若有定义&quot;char str1[30],str2[30];&quot;,则输出较大字符串的正确语句是( )",{"answer":76,"createTime":5,"id":77,"options":78,"question":83,"source":28,"type":29},[],110489549,[79,80,81,82],"11","19","13","20","下列程序段的输出结果是( ). int aa[4][4]={{1,2,3,4},{5,6,7,8},{3,9,10,2},{4,2,9,6}}; int i,s=0; for(i=0;i&lt;4;i++) s+=aa[i][1]; printf(&quot;%d\\n&quot;,s)",{"answer":85,"createTime":5,"id":86,"options":87,"question":92,"source":28,"type":29},[],110489551,[88,89,90,91],"15","14","7","6","下列程序段的输出结果是( ). char str[15]= &quot;hello!&quot;; printf(&quot;%d\\n&quot;,strlen(str))",{"answer":94,"createTime":5,"id":95,"options":96,"question":101,"source":28,"type":29},[],110489552,[97,98,99,100],"I am sad","happy","I am happy","happy!sad","有以下程序段,当输入为happy!时,程序运行后输出结果是( ). char str[14]={&quot;I am &quot;}; strcat(str, &quot;sad!&quot;); scanf(&quot;%s&quot;,str); printf(&quot;%s&quot;,str)",{"answer":103,"createTime":5,"id":6,"options":104,"question":16,"source":28,"type":29},[],[8,9,10,11]]