[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fLXTKaWSJvi36qdyrQrWRK9a0BcWcp7DXWmSQ1gEdFxQ":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":8,"question":15,"related":16,"source":27,"type":110},[],"2026-01-11 00:17:24",308970648,[],{"count":9,"courseId":10,"courseImg":11,"courseName":12,"workId":13,"workName":14},20,"53e1d2ef4961cca8eea3e23969ad2cb9","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F03a579384a6dc297c89809b582fcc767.png","默认课程","work_45507762","第5章 数组-习题作业","下列程序的运行结果为: ( ). \u003Cimg src=\"https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F5f41778d60e393743e9776f842e13789.png\">",[17,29,38,47,56,65,74,83,92,101],{"answer":18,"createTime":19,"id":20,"options":21,"question":26,"source":27,"type":28},[],"2025-11-19 18:21:40",237255195,[22,23,24,25],"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":30,"createTime":19,"id":31,"options":32,"question":37,"source":27,"type":28},[],237255196,[33,34,35,36],"a数组和b数组长度相同","a数组长度大于b数组长度","a数组长度小于b数组长度","两个数组中存放相同的内容","若有以下的数组定义:&quot;char a[ ]=&quot;abcd&quot;; char b[ ]={'a','b','c','d','e'};&quot;,则以下正确的描述是( )",{"answer":39,"createTime":19,"id":40,"options":41,"question":46,"source":27,"type":28},[],237255197,[42,43,44,45],"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":48,"createTime":19,"id":49,"options":50,"question":55,"source":27,"type":28},[],237255198,[51,52,53,54],"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":57,"createTime":19,"id":58,"options":59,"question":64,"source":27,"type":28},[],237255199,[60,61,62,63],"数组的下标可以是float类型","数组的元素的类型可以不同","初始化列表中初始值的个数多于数组元素的个数也是可以的","区分数组的各个元素的方法是通过下标","下列说法正确的是( )",{"answer":66,"createTime":19,"id":67,"options":68,"question":73,"source":27,"type":28},[],237255200,[69,70,71,72],"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":75,"createTime":19,"id":76,"options":77,"question":82,"source":27,"type":28},[],237255201,[78,79,80,81],"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":84,"createTime":19,"id":85,"options":86,"question":91,"source":27,"type":28},[],237255202,[87,88,89,90],"15","14","7","6","下列程序段的输出结果是( ). char str[15]= &quot;hello!&quot;; printf(&quot;%d\\n&quot;,strlen(str))",{"answer":93,"createTime":19,"id":94,"options":95,"question":100,"source":27,"type":28},[],237255203,[96,97,98,99],"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":102,"createTime":19,"id":103,"options":104,"question":109,"source":27,"type":28},[],237255204,[105,106,107,108],"一个数组只允许存储同种类型的数据","数组名是数组在内存中的首地址","数组必须先定义,后使用","如果在对数组进行初始化时,给定的数据元素个数比数组元素少,多余的数组元素自动初始化为最后一个给定元素的值","下列关于数组的描述中错误的是( )",2]