0)d=b;if(strcmp(c.name,b.name)>0)d=c;printf("%s"> 0)d=b;if(strcmp(c.name,b.name)>0)d=c;printf("%s">
写出以下程序的运行结果。#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
写出以下程序的运行结果。#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);}
【正确答案】:lili,1003
Top