下面不能正确定义结构体变量a的语句是______。
A. struct xyz{char x;int y;float z;};struct xyz a;
B. struct xyz{char x;int y;float z;} a;
C. struct xyz{char x;int y;float z;};typedef xyz a;
D. struct {char x;int y;float z;} a;
若有以下结构体定义,则正确的引用或定义是_______________。struct exam{ int x;int y; };
A. exam x=10;
B. exam y,x;
C. struct exam y={10};
D. struct exam a; a.x=10;
已知:struct MP3{char name[20];char color;float price;}std,*ptr;ptr=&std;若要引用结构体变量std中的color成员,以下写法中错误的是______。
A. std.color
B. std->color
C. ptr->color
D. (*ptr).color
已知:struct st{int num;char sex;float score;}stud,*p=&stud;则对于结构体变量stud的成员num正确的引用是______。
A. stud->num
B. st.num
C. p->num
D. p.num