0)d=b;if(strcmp(c.name,b.name)>0)d=c;printf("%s,%1d\n",p->name,d.num);}"> 0)d=b;if(strcmp(c.name,b.name)>0)d=c;printf("%s,%1d\n",p->name,d.num);}">
自考题库入口
问答题
写出以下程序的运行结果。#include#includetypedefstruct{charname[10];longnum;floatscore;}STU;main{STUa={"liming",1001,86},b={"anjia",1002,95},c={"lili",1003,100},d,*p=d;d=a;if(strcmp(a.name,b.name)>0)d=b;if(strcmp(c.name,b.name)>0)d=c;printf("%s,%1d\n",p->name,d.num);}
收藏

答案

解析

加载中...