首页 > 试题广场 >

对结构体变量 person 的出生年月进行赋值时,下面正确的

[单选题]

有如下定义:

struct date
{
    int yy, mm, dd;
};

struct worklist
{
    char name[20];
    char sex;

    struct date birthday;
} person;
对结构体变量 person 的出生年月进行赋值时,下面正确的赋值语句是 ________


  • yy = 1958
  • birthday.yy = 1958
  • person.yy = 1958
  • person.birthday.yy = 1958
结构体嵌套,选D
发表于 2019-01-14 11:50:36 回复(0)
d
发表于 2021-12-28 20:43:08 回复(0)
只要弄清楚是结构体的嵌套就明白了,person里的birthday也是结构体
发表于 2019-01-13 21:49:27 回复(0)