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

以下对结构体类型变量td的定义中,错误的是()。A.typcdef struct aa { int n; float m; } AA; AA

以下对结构体类型变量td的定义中,错误的是()。

A.typcdef struct aa { int n; float m; } AA; AA td;

B.struct aa {int n; float m; } struct aa td;

C.struct {int n; float m; } aa; struct aa td;

D.struct {int n; float m; }td;

提问人:网友dcmztc2007 发布时间:2022-01-06
参考答案
查看官方参考答案
如搜索结果不匹配,请 联系老师 获取答案
更多“以下对结构体类型变量td的定义中,错误的是()。A.typc…”相关的问题
第1题
若定义结构体类型变量student,以下各项对结构体变量成员引用错误的是()。 struct stud_type { int num; char name[10]; int age; float score; }student;

A、student.num=10002;

B、student.name="高远";

C、student.age=19;

D、student.score=90;

点击查看答案
第2题
1.定义以下结构体数组 struct date { int year; int month; }; struct s { struct date birth; char name[20]; }x[4]={{2008,8,"hangzhou"},{2009,3,"Tianjin"}}; 语句printf("%c,%d",x[1].name[1],x[1].birth.year);的输出结果为[ ].

A、A)a,2008

B、B)hangzhou,2008

C、C)i,2009

D、D)Tianjin,2009

点击查看答案
第3题
关于结构体成员变量Id内容或地址,下面的使用非法的是( ) struct Student { int Id; }stu,*p;

A、Student.Id

B、&(p->Id)

C、p->Id

D、stu.Id

点击查看答案
第4题
在如下结构体定义中,不正确的是 。

A、struct student { long no; double score; };

B、struct stud[20] { long no; double score; };

C、struct student { long no; double score; }stud[20];

D、struct { long no; double score; } stud[100];

点击查看答案
第5题
以下各项用于定义结构体类型,并定义结构体变量,正确的是( ).

A、struct student { char num[5]; int score; }; student stu1,stu2;

B、struct student stu1,stu2; struct student { char num[5]; int score; };

C、struct student { char num[5]; int score=96; }; struct student stu1,stu2;

D、struct student { char num[5]; int score; }; struct student stu1,stu2;

点击查看答案
第6题
有以下结构体说明、变量定义和赋值语句 struct STD { char name[10]; int age; char sex; }s[5],*ps; ps=&s[0]; 则以下scanf函数调用语句中错误引用结构体变量成员的是______。

A.scanf("%s",s[0].name);

B.scanf("%d",&s[0].age);

C.scanf("%c",&(ps->sex));

D.scanf("%d",ps->age);

点击查看答案
第7题
若有如下定义: char s[20],*ps=s; 则以下赋值语句正确的是( )

A、s=ps+s;

B、ps=ps+20;

C、s[5]=ps[9];

D、ps=s[0];

点击查看答案
第8题
在程序中定义结构体类型变量,以下代码正确的是()。

A、struct student { int num; char name[20]; char sex; int score; } student1,student2;

B、struct { int num; char name[20]; char sex; int score; }student1, student2;

C、struct student { int num; /* 学号 */ char name[20]; /* 姓名 */ char sex; /* 性别 */ int score; /* 成绩 */ }; ...... struct student student1, student2;

D、struct student student1, student2; ...... struct student { int num; /* 学号 */ char name[20]; /* 姓名 */ char sex; /* 性别 */ int score; /* 成绩 */ };

点击查看答案
第9题
下列模式中,能够给出数据库物理存储结构与物理存取方法的是()。

A.内模式

B.外模式

C.概念模式

D.逻辑模式

点击查看答案
第10题
设有以下程序段: int x=0,s=0; whUe(! x! =0) s+ = ++x; printf("%d",s); 则()。

A.运行程序段后输出0

B.运行程序段后输出1

C.程序段中的控制表达式是非法的

D.程序段执行无限次

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

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

简答题官方微信公众号

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

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

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