AI智能整理导入 AI智能整理导入
×
首页 题库中心 c语言程序设计题库 题目详情
CA85E835B92000012B50FB49F93816B5
c语言程序设计题库
1,073
单选题

已知学生记录描述为
struct student
{ int no ;
char name [20] ;
char sex ;
struct
{ int year ;
int month ;
int day ;
} birth ;
} ;
struct student s ;
设变量S 中的"生日", 应是"1984 年11月11日", 下列对“生日”的正确赋值方式是( )。

A
s.birth.year =1984 ; s.birth.month=11 ; s.birth.day =11;
B
year =1984 ; month =11; day =11;
C
birth.year =1984 ; birth.month =11; birth.day =11;
D
s.year =1984 ; s.month =11; s.day =11;

答案解析

正确答案:A

解析:

结构体与共用体
c语言程序设计题库

扫码进入小程序
随时随地练习

关闭
专为自学备考人员打造
试题通
自助导入本地题库
试题通
多种刷题考试模式
试题通
本地离线答题搜题
试题通
扫码考试方便快捷
试题通
海量试题每日更新
试题通
欢迎登录试题通
可以使用以下方式扫码登陆
试题通
使用APP登录
试题通
使用微信登录
xiaochengxu
联系电话:
400-660-3606
xiaochengxu