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