[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$ftjn9a2nKgEBy4qYDeLTeJa8EUr08B7kLIRvs7NOfdSI":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":31,"type":32},[],"2024-04-16 12:54:41",138611922,[8,9,10,11],"20","11","10","21",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},20,"a23fff6dad13adc952ec813e3c6ef0e1","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F20bc9985fc1832dd27ee1e48430a7f1a.jpg","C语言程序设计2","work_34317546","结构9-2作业","有以下程序: #include &lt;stdio.h&gt; struct S {int a,b;}data[2]={10,100,20,200}; main() {struct S p=data[1]; printf(&quot;%d\\n&quot;,++p.a); } 程序运行后的输出结果是()",[21,33,36,46,56,66,76,85,92,102],{"answer":22,"createTime":23,"id":24,"options":25,"question":30,"source":31,"type":32},[],"2024-04-16 12:54:39",138611920,[26,27,28,29],"printf(&quot;%c\\n&quot;,class[2].name[1])","printf(&quot;%c\\n&quot;,class[2].name[0])","printf(&quot;%c\\n&quot;,class[3].name[0])","printf(&quot;%c\\n&quot;,class[3].name[1])","有如下定义: struct person{char name[9];int age;}; struct person class[10]={&quot;John&quot;,17,&quot;Paul&quot;,19,&quot;Mary&quot;,18,&quot;Adam&quot;,16,}; 根据上述定义,能输出字母M的语句是()","v1",0,{"answer":34,"createTime":5,"id":6,"options":35,"question":19,"source":31,"type":32},[],[8,9,10,11],{"answer":37,"createTime":38,"id":39,"options":40,"question":45,"source":31,"type":32},[],"2024-04-16 12:54:43",138611925,[41,42,43,44],"580 550","550 580","680 680","580 680","以下程序运行后的输出结果是(). struct STU {char name[10]; int num; int score; }; main() {struct STU s[5]={ {&quot;YangSan&quot;,20041,703}, {&quot;LiSiGuo&quot;,20042,580}, {&quot;WangYin&quot;,20043,680}, {&quot;SunDan&quot;,20044,550}, {&quot;Penghua&quot;,20045,537} },*p[5],*t; int i,j; for(i=0;i&lt;5;i++)p[i]=&amp;s[i]; for(i=0;i&lt;4;i++) for(j=i+1;j&lt;5;j++) if(p[i]-&gt;score&gt;p[j]-&gt;score) {t=p[i];p[i]=p[j];p[j]=t;} printf(&quot;%d %d\\n&quot;,s[1].score,p[1]-&gt;score); }",{"answer":47,"createTime":48,"id":49,"options":50,"question":55,"source":31,"type":32},[],"2024-04-16 12:54:44",138611930,[51,52,53,54],"p=&amp;stu.age","(p++)-&gt;num","(*p).num","p++","若有以下程序段,则使用错误的选项是(). struct student { int num; int age; }; struct student stu[3]={{1001,20},{1002,19},{1004,20}}; main(); { struct student *p; p=stu; &hellip; ; }",{"answer":57,"createTime":58,"id":59,"options":60,"question":65,"source":31,"type":32},[],"2024-04-16 12:54:45",138611934,[61,62,63,64],"13,14","11,12","14,1l","12,13","有以下程序: #include struct ord {int x,y;}dt[2]={11,12,13,14}; main(){ struct ord *p=dt; printf(&quot;%d,&quot;,++p-&gt;x);printf(&quot;%d\\n&quot;,++p-&gt;y); } 程序运行后的输出结果是()",{"answer":67,"createTime":68,"id":69,"options":70,"question":75,"source":31,"type":32},[],"2024-04-16 12:54:46",138611936,[71,72,73,74],"q=(struct sk*)&amp;data.m","q=(struct sk*)data.m","*q=data.m","q=&amp;data.m","设有如下定义: struct sk {int m; float x; }data,*q; 若要使q指向data中的m域,正确的赋值语句是()",{"answer":77,"createTime":68,"id":78,"options":79,"question":84,"source":31,"type":32},[],138611938,[80,81,82,83],"SunDan 20044","SunDan 20042","YangSan 20041","LiSiGuo 20042","有以下程序 #include struct STU {char name[10]; int num; }; void f(char *name,int num) {struct STU s[2]={{&quot;SunDan&quot;,20044},{&quot;Penghua&quot;,20045}}; num=s[0].num; strcpy(name,s[0].name); } main(){struct STU s[2]={{&quot;YangSan&quot;,20041},{&quot;LiSiGuo&quot;,20042}},*p; p=&amp;s[1];f(p-&gt;name,p-&gt;num); printf(&quot;%s%d\\n&quot;,p-&gt;name,p-&gt;num); } 程序运行后的输出结果是()",{"answer":86,"createTime":68,"id":87,"options":88,"question":91,"source":31,"type":32},[],138611940,[53,89,52,90],"p-&gt;num","stu[3].age","有以下说明和定义语句. struct student {int age; char num[8]; }; struct student stu[3]={{20,&quot;20041&quot;},{21,&quot;20042&quot;},{19,&quot;20043&quot;}}; struct student *p=stu; 以下选项中,引用结构体变量成员的表达式错误的是()",{"answer":93,"createTime":94,"id":95,"options":96,"question":101,"source":31,"type":32},[],"2024-04-16 12:54:47",138611942,[97,98,99,100],"p=(struct sk*)data.a","p=&amp;data.a","*p=data.a","p=(struct sk*)&amp;data.a","设有如下定义:struct sk{int a;float b;}data,*p; 若要使p指向data中的a域,正确的赋值语句是()",{"answer":103,"createTime":104,"id":105,"options":106,"question":111,"source":31,"type":32},[],"2024-04-16 12:54:49",138611944,[107,108,109,110],"(*p).age","student.age","p-&gt;age","stud1.age","若有以下说明,则对结构体变量stud1中成员age的不正确引用是(). struct student {int age;int num; }stud1,*p; p=&amp;stud1"]