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