【问题】 已知学生记录描述为:struct studentf+int no ; char name[20]; char sex;struct { int year; int month ; int day ; ]birth ;rsiP设结构变量s 中的"birth"应是“1985 年10月1日”,则下面正确的赋值方式是Ayear=1985;+month=10;+day=1;Bbirth.year=1985;birth.month=10;+birth.day=1;Cs.year=1985;+s.month=10;+s
已知学生记录描述为:struct studentf+int no ; char name[20]; char sex;struct { int year; int month ; int day ; ]birth ;rsiP设结构变量s 中的"birth"应是“1985 年10月1日”,则下面正确的赋值方式是Ayear=1985;+month=10;+day=1;Bbirth.year=1985;birth.month=10;+birth.day=1;Cs.year=1985;+s.month=10;+s .day=l;Ds.birth.year=1985;+s.birth.month=10;+s.birth.day=1;
正确答案:D
题目解析:本题出自江苏科技大学,江苏科技大学计算机程序设计vc++,由丰阳塔题库搜集整理。