[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fOsotD5eBxJXBvKzGkkeTO2C45eIE1cM7aPa-2kLhQVg":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",239456255,[8,9,10,11],"NanJingChinaolympic","Chinaolympic","olympic","NanJing",{"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章作业","有如下程序段: 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); 执行该程序段后的输出是( )",[21,32,41,50,59,68,77,85,94,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":43,"options":44,"question":49,"source":30,"type":31},[],239456249,[45,46,47,48],"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])","已知有预处理命令#include&lt;stdio.h&gt;和声明&quot;char ch[10]=&quot;Goodluck.&quot;;int i;&quot;,要求输出字符串&quot;Goodluck.&quot;,下面选项中不能达到该要求的语句是( )",{"answer":51,"createTime":5,"id":52,"options":53,"question":58,"source":30,"type":31},[],239456250,[54,55,56,57],"int a(10)","char str[]","int n=5;int a[4][n]","#define SIZE 10char str1[SIZE],str2[SIZE+2]","下面定义数组的语句中正确的是( )",{"answer":60,"createTime":5,"id":61,"options":62,"question":67,"source":30,"type":31},[],239456251,[63,64,65,66],"int a[]","int n=5,a[n]","int a[4+1]={0}","int a[3]={4,3,2,1}","下列一维数组的声明中正确的是( )",{"answer":69,"createTime":5,"id":70,"options":71,"question":76,"source":30,"type":31},[],239456252,[72,73,74,75],"只有元素a[0][0]可得到初值","此说明语句不正确","数组a中各元素都可得到初值,但其值不一定为0","数组a中每个元素均可得到初值0","已有定义&quot;int a[3][4]={0};&quot;,则下面正确的叙述是( )",{"answer":78,"createTime":5,"id":79,"options":80,"question":84,"source":30,"type":31},[],239456253,[81,63,82,83],"int n,a[n]","int a[2][3]={{2},{1},{3}}","int a[ ][3]={{2},{1},{3}}","下面数组声明语句中正确的是( )",{"answer":86,"createTime":5,"id":87,"options":88,"question":93,"source":30,"type":31},[],239456254,[89,90,91,92],"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":95,"createTime":5,"id":6,"options":96,"question":19,"source":30,"type":31},[],[8,9,10,11],{"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}","下面声明中错误的是( )"]