有如下定义的结构体类型:struct data{ int year; int month; int day; }workday;对其中成员month的正确引用方式是______。
A. data.month
B. data.year.month
C. month
D. workday.month
有如下程序段,执行后的输出结果是______。#include int main(){ structa{int x;int y;}num[2]={{20,5},{6,7;printf("%d\n",num[0].x/num[0].y*num[1].y); }
A. 0
B. 28
C. 20
D. 5
以下程序的运行结果是______。#include #include typedef struct {char name[9]; char sex; float score[2];} STU;void f(STU a){ STU b={"Zhao",'m',85.0,90.0}; int i;strcpy(a.name, b.name);
A. sex=b.sex;for(i=0;i<2;i++) a.score[i]=b.score[i];}int main(){ STU c={"Qian",'f',95.0,92.0};f(c);printf("%s,%c,%2.0f,%2.0f\n",c.name,c.sex,c.score[0],c.score[1]); }A.Qian,f,95,92
B. Qian,m,85,90
C. Zhao,f,95,92
D. Zhao,m,85,90