题目内容 (请给出正确答案)
[主观题]

能将学生正确定义并将变量中的“出生日期”赋值为1984年11月11日的是 能将学生正确定义并将变量中的“出生日期”赋值为1984年11月11日的是 A、struct stud

能将学生正确定义并将变量中的“出生日期”赋值为1984年11月11日的是能将学生正确定义并将变量中的“出生日期”赋值为1984年11月11日的是 A、struct stud

A、struct student { int number; char name[20]; char sex; int year; int month; int day; } s; year = 1984; month = 11; day = 11;

B、struct student { int number; char name[20]; char sex; } s; struct { int year; int month; int day; } birth; birth.year = 1984; birth.month = 11; birth.day = 11;

C、struct student { int number; char name[20]; char sex; struct { int year; int month; int day; } birth; } s; s.year = 1984; s.month = 11; s.day = 11;

D、struct student { int number; char name[20]; char sex; struct { int year; int month; int day; } birth; } s; s.birth.year = 1984; s.birth.month = 11; s.birth.day = 11;

提问人:网友zxgboss 发布时间:2022-01-07
参考答案
  抱歉!暂无答案,正在努力更新中……
如搜索结果不匹配,请 联系老师 获取答案
更多“能将学生正确定义并将变量中的“出生日期”赋值为1984年11…”相关的问题
第1题
已有定义和声明: struct student {int no; char name[20]; struct {int year,month,day; }birth; }s; 若要求将日期"1989年11月12日"保存到变量s的birth成员中,则能实现这一功能的程序段是( ).

A、s.birth.year=1989; s.birth.month=11; s.birth.day=12;

B、s.year=1989; s.month=11; s.day=12;

C、year=1989; month=11; day=12;

D、birth.year=1989; birth.month=11; birth.day=12;

点击查看答案
第2题
表1-5中的数据发表在1984年3月1日的《华尔街日报》(TheWallStreetJourmal上。它将1983年21家企业的广告预算(以百万美元计)与看报者每周对这些企业产品保留的印象次数(以百万次计)相联系。这些数据基于对4000个成人的调查,在调查中要求产品使用者列出一条在过去的一周里见过的该类产品的商业广告。

a.以印象数为纵轴、以广告支出为横轴画散点图。

b.你认为这两个变量之间的关系具有什么样的性质?

c.看一下你的图,你认为值得做广告吗?想想那些出现在星期天的超级碗杯赛(SuperBowlSunday)上和世界职业棒球锦标赛期间的商业广告。

点击查看答案
第3题
指针变量赋值正确的是

A、int *p=&i,i;

B、int i, *p=i;

C、int i, *p=&i;

D、int i, *p; p=i;

点击查看答案
第4题
int a[6]={1,2,3,4,5,6},*p=a; 执行 p+=2; 后,*p=?

A、3

B、2

C、1

D、4

点击查看答案
第5题
以下代码的运行结果是 char name[8]={‘s’,’t’,’\0’,’t’,’n’,’g’,'\0'}; name[2]=‘b’; name[5]=0; puts(name);

A、st

B、strbn

C、stbtn

D、stbtng

点击查看答案
第6题
数组的正确定义是

A、int a[]={1,2,3,4};

B、int b[];

C、int a[4][0];

D、char s[][5];

点击查看答案
第7题
有字符数组为a[80], b[80], 当两次均输入 abc abc abc(后面是回车)时 gets(a); scanf("%s", b); 以下说法正确的是

A、a数组和b数组里内容相同,均为abc

B、a数组和b数组里内容相同,均为abc abc abc

C、a数组和b数组里内容不同 a数组内容为abc b数组内容为abc abc abc

D、a数组和b数组里内容不同 a数组内容为abc abc abc b数组内容为abc

点击查看答案
第8题
以下选项中不能把s正确定义成结构体变量的是

A、struct student { int id; char name[20]; float score; }s;

B、struct { int id; char name[20]; float score; }s;

C、struct s { int id; char name[20]; float score; };

D、struct student { int id; char name[20]; float score; }; struct student s;

点击查看答案
第9题
下面程序的输出结果为3,请在空白处填上恰当的表达式,使程序完整并符合题目要求。int s[]={1,2,3,4,5}; int *p; p=________; printf("%d",*p);

A、s+2

B、s+3

C、p+2

D、p+3

点击查看答案
第10题
字符串编程
点击查看答案
账号:
你好,尊敬的用户
复制账号
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
欢迎分享答案

为鼓励登录用户提交答案,简答题每个月将会抽取一批参与作答的用户给予奖励,具体奖励活动请关注官方微信公众号:简答题

简答题官方微信公众号

警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
简答题
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反简答题购买须知被冻结。您可在“简答题”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
简答题
点击打开微信