网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

【单选题】已知对学生记录的描述为: struct student { int num; char name[20],sex; struct{ int year,month,day;}birthday; }; struct student stu; 设变量stu中的“生日”是“1995年11月12日”,对“birthday”正确赋值的程序是______。

A.year=1995;month=11;day=12;

B.stu.year=1995;stu.month=11;stu.day=12;

C.birthday.year=1995;birthday.month=11;birthday.day=12;

D.stu.birthday.year=1995;stu.birthday.month=11;stu.birthday.day=12;


参考答案和解析
时间维
更多 “【单选题】已知对学生记录的描述为: struct student { int num; char name[20],sex; struct{ int year,month,day;}birthday; }; struct student stu; 设变量stu中的“生日”是“1995年11月12日”,对“birthday”正确赋值的程序是______。A.year=1995;month=11;day=12;B.stu.year=1995;stu.month=11;stu.day=12;C.birthday.year=1995;birthday.month=11;birthday.day=12;D.stu.birthday.year=1995;stu.birthday.month=11;stu.birthday.day=12;” 相关考题
考题 已知学生记录描述为:struct student{ int no;char name[20],sex;struct{ int year,month,day;} birth;};struct student s;设变量s中的"生日"是"1984年11月12日",对"birth"正确赋值的程序段是A.year=1984;month=11;day=12;B.s.year=1984;s.month=11;s.day=12;C.birth.year=1984;birth.month=11;birth.day=12;D.s.birth.year=1984;s.birth.month=11;s.birth.day=12;

考题 已知学生记录描述为: struct student { int no; char name[20],sex; struct { int year,month,day; } birth; }; struct student s; 设变量s中的“生日”是“1984年11月12日”,对“birth”正确赋值的程序段是( )。A.year=1984;month=11;day=12;B.s.year=1984;s.month=11;s.day=12;C.birth.year=1984;birth.month=11;birth.day=12;D.s.birth.year=1984;s.birth.month=11;s.birth.day=12;

考题 某C语言结构体的定义如下。 struct date { int year, month, day; }; struct worklist { char name[20]; char sex; struct date birthday; }person; 若对变量person的出生年份进行赋值,正确的赋值语句是(33)。A.year=1976B.birthday. year=1976C.person. year=1976D.person. birthday. year=1976

考题 若有以下定义,则对变量student1中“生日”的正确赋值方式是()。 struct student { int num; char name[20], sex; struct { int year, month, day; } birthday; } ; struct student student1;A.student1.birthday.year = 2003; student1.birthday.month = 5; student1.birthday.day = 1;#B.year = 2003; month = 5; day = 1;#C.birthday.year = 2003; birthday.month = 5; birthday.day = 1;#D.student1.year = 2003; student1.month = 5; student1.day = 1;

考题 有以下的结构体变量定义语句: struct student { int num; charname[9]; } stu; 则下列叙述中错误的是()。A.结构体类型名为stuB.num是结构体成员名C.struct是C的关键字D.结构体类型名为student

考题 08110062:已知职工记录描述为: struct workers{ int no; char name[20]; char sex; struct{ int day; int month; int year; }birth; }; struct workers w; 设变量w中的“生日”应是“1993年10月25日”,下列对“生日”的正确赋值方式是()。A.day=25;month=10;year=1993;B.w.day=25;w.month=10;w.year=1993;C.w.birth.day=25;w.birth.month=10;w.birth.year=1993;D.birth.day=25;birth.month=10;birth.year=1993;

考题 已知对学生记录的描述为: struct student { int num; char name[20],sex; struct{ int year,month,day; }birthday; } struct student stu; 设变量stu中的“生日”是“1995年11月12日”,对“birthday”正确赋值的程序是______。A.year=1995; month=11; day=12;B.stu.year=1995; stu.month=11; stu.day=12;C.birthday.year=1995; birthday.month=11; birthday.day=12;D.stu.birthday.year=1995; stu.birthday.month=11; stu.birthday.day=12;