当前位置: 答题翼 > 问答 > 计算机类考试 > 正文
目录: 标题| 题干| 答案| 搜索| 相关
问题

有以下定义和语句Struct Workers{int num;char name[20];char c; struct {int day;int month;int


有以下定义和语句

Struct Workers

{ int num;char name[20];char c;

struct

{ int day;int month;int year;}s;

};

Struct Workers W,*pe;

PW=&W;

能给W中yeaR成员赋1980的语句是

A.*pW.yeaR=1980;

B.W.yeaR=1980;

C.pW->yeaR=1980;

D.W.s.yeaR=1980;

请帮忙给出正确答案和分析,谢谢!

参考答案
您可能感兴趣的试题
  • (38 )有以下定义和语句struct workers{ int num;char name[20];char c;struct{ int day; int mo

  • (38 )有以下定义和语句struct workers{ int num;char name[20];char c;struct{ int day; int mo

  • 若有以下定义和语句 struct a{ int n,m;}; struct a st[3]={{2,3},{4,5},{6,7}}; struct a*p=st;

  • 若有以下定义的语句 struct student { int age; int num; }; struct student stu[3]={{1001 20}

  • 有以下结构体说明 变量定义和赋值语句struct STD{ char name[10];int age;char sex;} s[5]

  • 有以下说明和定义语句 struct student {int age;char num[8]; }; struct student stu[3]={{20 2