定义以下结构型数组
structdate
{intyear;
intmonth;
};
structs
{structdatebirth;
charname[20]
}x[4]={{1977,8,"hangzhou"},{1975,9,"Tianjin"}};
语句printf("%c,%d",x[1].name[1],x[1].birth.year);的输出结果为()
A.a,1977 B.hangzhou,1977 C.i,1975 D.Tianjin,1975正确答案C
定义以下结构型数组
structdate
{intyear;
intmonth;
};
structs
{structdatebirth;
charname[20]
}x[4]={{1977,8,"hangzhou"},{1975,9,"Tianjin"}};
语句printf("%c,%d",x[1].name[1],x[1].birth.year);的输出结果为()
A.a,1977 B.hangzhou,1977 C.i,1975 D.Tianjin,1975正确答案C