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