找考题网-背景图
问答题

main()
struct student
char name[10];
float k1;
float k2;a[2]="tom",50,60,"make",70,90,*p=a;
int i;
printf("\n name:%s total=%f\n",p->name,p->k1+p->k2);
printf("\n name:%s total=%f\n",a[1].name,a[1].k1+a[1].k2);

【参考答案】

name:tom total=110.000000
name:make total=160.000000