报关编码题 C语言
题号 #142985

以下程序的运行结果是(19)  
# include  
typedef struct student{  
 char name[10];  
 long sno;  
 float score;  
 }STU;  
main( )  
{ STU  
a={“zhangsan”,2001,95},b={“Shangxian”,2002,90},c={“Anhua”,2003,95},d,*p=&d;  
 d=a;  
 if(strcmp(a.name,b.name)>0) d=b;  
 if(strcmp(c.name,d.name)>0) d=c;  
 printf(“%ld%s\n”,d.sno,p->name);  
 }  

进入在线模考

参考答案

暂无

答案解析

3*sizeof(double)

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考