已知职工记录描述如下,structworker{intno;charname[20];charsex;struct{intday;intmonth;intyear;}birth;};structworkerw;设变量w中的“生日”是“1993年10月25日”,下列对“生日”的正确赋值方式是() A、day=25;month=10;year=1993;B、w.birth.day=25;w.birth.month=10;w.birth.year=1993;C、w.day=25;w.month=10;w.year=1993;D、birth.day=25;birth.month=10;birth.year=1993;

已知职工记录描述如下,structworker{intno;charname[20];charsex;struct{intday;intmonth;intyear;}birth;};structworkerw;设变量w中的“生日”是“1993年10月25日”,下列对“生日”的正确赋值方式是()

A、day=25;month=10;year=1993;

B、w.birth.day=25;w.birth.month=10;w.birth.year=1993;

C、w.day=25;w.month=10;w.year=1993;

D、birth.day=25;birth.month=10;birth.year=1993;


相关考题:

已知学生记录描述为 struct student { int no; char name[20]; char sex; struct { int year; int month; int day; } birth; }; struct student s;变量s中的“生日”应是“1985年4月4日”,下列对“生日”的正确赋值方式是______。A.year=1985;month=4;day=4;B.birth.year=1985;birth.month=4;birth.day=4;C.s.year=1985;s.month=4;s.day=4;D.s.birth.year=1985;s.birth.month=4;s.birth,day=4;

已知学生记录描述为:struct student{ int no;char name[20],sex;struct{ int year,month,day;} birth;};struct student s;设变量s中的"生日"是"1984年11月12日",对"birth"正确赋值的程序段是A.year=1984;month=11;day=12;B.s.year=1984;s.month=11;s.day=12;C.birth.year=1984;birth.month=11;birth.day=12;D.s.birth.year=1984;s.birth.month=11;s.birth.day=12;

已知学生记录描述为: struct student { int no; char name[20],sex; struct { int year,month,day; } birth; }; struct student s; 设变量s中的“生日”是“1984年11月12日”,对“birth”正确赋值的程序段是( )。A.year=1984;month=11;day=12;B.s.year=1984;s.month=11;s.day=12;C.birth.year=1984;birth.month=11;birth.day=12;D.s.birth.year=1984;s.birth.month=11;s.birth.day=12;

下面结构体的定义语句中,不正确的是______。A.structdate { int month; int day; int year; } Struct date datel;B.stmctdate { intmonth; int day; int year; } datel;C.struct { int month; int day; int year; } date 1;D.#define DATE stmct date DATE { int month; int day; int year; }datel;

若定义下列结构体,结构体变量p的出生年份赋值正确的语句是( )。 struct st { int x; int y; int z; } struct worker { char name[20]; char sex; struct st birth; }p;A.x=1987B.birth.x=1987;C.p.birth.x=1987;D.p.x=1987;

已知学生记录描述如下,设变量s中的“生日”应是“1984年11月11日”,下列对生日的正确赋值方式是()。 struct student{ int no; char name[20]; char set; struct{ int year; int month; int day; } birth; }; struct student s;A.year=1984;month=11;day=11;B.birth.year=1984; birth.month=11; birth.day=11C.s.year=1984;s.month=11;s.day=11D.s.birth.year=1984;s.birth.month=11; s.birth.day=11;

08110062:已知职工记录描述为: struct workers{ int no; char name[20]; char sex; struct{ int day; int month; int year; }birth; }; struct workers w; 设变量w中的“生日”应是“1993年10月25日”,下列对“生日”的正确赋值方式是()。A.day=25;month=10;year=1993;B.w.day=25;w.month=10;w.year=1993;C.w.birth.day=25;w.birth.month=10;w.birth.year=1993;D.birth.day=25;birth.month=10;birth.year=1993;

设有一结构体类型变量定义如下: struct date { int year; int month; int day; }; struct worker { char name[20]; char sex; struct date birthday; }w1; 若对结构体变量w1的出生年份进行赋值,下面正确的赋值语句是()A.year=1976B.birthday.year=1976C.w1.birthday.year=1976D.w1.year=1976

设有一结构体类型变量定义如下: struct date { int year; int month; int day; }; struct worklist { char name[20]; char sex; struct date birthday; } person; 若对结构体变量person的出生年份进行赋值时,下面正确的赋值语句是()。A.year=1976B.birthday.year=1976C.person.birthday.year=1976D.person.year=1976