[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fwijRbAYR1HFOwAcLkw6XNBRhlBjWd-Wj2IG5QGU4gsE":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2025-11-22 18:46:58",239456249,[8,9,10,11],"puts(ch)","printf(&quot;%s&quot;,ch[10])","for(i=0;ch[i]!=&quot;\\0&quot;;i++)printf(&quot;%c&quot;,ch[i])","for(i=0;ch[i]!=&quot;\\0&quot;;i++)putchar(ch[i])",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},26,"53e1d2ef4961cca8eea3e23969ad2cb9","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F03a579384a6dc297c89809b582fcc767.png","默认课程","work_48268300","第6章作业","已知有预处理命令#include&lt;stdio.h&gt;和声明&quot;char ch[10]=&quot;Goodluck.&quot;;int i;&quot;,要求输出字符串&quot;Goodluck.&quot;,下面选项中不能达到该要求的语句是( )",[21,32,41,44,53,62,71,79,88,97],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],239456247,[25,26,27,28],"2","3","4","无确定值","已有定义&quot;int a[][3]={0,1,2,3,4,5,6};&quot;,则数组a第1维的大小是( )","v1",0,{"answer":33,"createTime":5,"id":34,"options":35,"question":40,"source":30,"type":31},[],239456248,[36,37,38,39],"char ch[]=&quot;string&quot;","char ch[7]={'s','t','r','i','n','g'}","char ch[10];ch=&quot;string&quot;","char ch[7]={'s','t','r','i','n','g','\\0'}","下面对字符数组不正确的初始化方式是( )",{"answer":42,"createTime":5,"id":6,"options":43,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":45,"createTime":5,"id":46,"options":47,"question":52,"source":30,"type":31},[],239456250,[48,49,50,51],"int a(10)","char str[]","int n=5;int a[4][n]","#define SIZE 10char str1[SIZE],str2[SIZE+2]","下面定义数组的语句中正确的是( )",{"answer":54,"createTime":5,"id":55,"options":56,"question":61,"source":30,"type":31},[],239456251,[57,58,59,60],"int a[]","int n=5,a[n]","int a[4+1]={0}","int a[3]={4,3,2,1}","下列一维数组的声明中正确的是( )",{"answer":63,"createTime":5,"id":64,"options":65,"question":70,"source":30,"type":31},[],239456252,[66,67,68,69],"只有元素a[0][0]可得到初值","此说明语句不正确","数组a中各元素都可得到初值,但其值不一定为0","数组a中每个元素均可得到初值0","已有定义&quot;int a[3][4]={0};&quot;,则下面正确的叙述是( )",{"answer":72,"createTime":5,"id":73,"options":74,"question":78,"source":30,"type":31},[],239456253,[75,57,76,77],"int n,a[n]","int a[2][3]={{2},{1},{3}}","int a[ ][3]={{2},{1},{3}}","下面数组声明语句中正确的是( )",{"answer":80,"createTime":5,"id":81,"options":82,"question":87,"source":30,"type":31},[],239456254,[83,84,85,86],"a[3][2]","a[2][1]","a[1][2]","a[2][3]","已有定义&quot;int a[3][2]={1,2,3,4,5,6};&quot;,数组元素( )的值为6",{"answer":89,"createTime":5,"id":90,"options":91,"question":96,"source":30,"type":31},[],239456255,[92,93,94,95],"NanJingChinaolympic","Chinaolympic","olympic","NanJing","有如下程序段: char p1[80]=&quot;NanJing&quot;,p2[20]=&quot;China&quot;,p3[20]=&quot;olympic&quot;;strcpy(p1,strcat(p2,p3)); printf(&quot;%s\\n&quot;,p1); 执行该程序段后的输出是( )",{"answer":98,"createTime":5,"id":99,"options":100,"question":105,"source":30,"type":31},[],239456256,[101,102,103,104],"int b[2]","int b[]={0,1}","int b[3]=0","int b[3][4]={0}","下面声明中错误的是( )"]