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