题目内容 (请给出正确答案)
[单选题]

以下选项中不能正确把 cl 定义成结构体变量的是 ______ 。 1 . typedefstruct {intred; int green; int blue; } COLOR; COLOR cl; 2 . structcolor cl { int red; int green; int blue; }; 3 . structcolor { int red; int green; int blu

A.1

B.2

C.3

D.4

提问人:网友lixin080108 发布时间:2022-01-07
参考答案
查看官方参考答案
如搜索结果不匹配,请 联系老师 获取答案
网友答案
查看全部
  • · 有4位网友选择 B,占比40%
  • · 有3位网友选择 C,占比30%
  • · 有3位网友选择 A,占比30%
匿名网友 选择了A
[180.***.***.166] 1天前
匿名网友 选择了B
[180.***.***.70] 1天前
匿名网友 选择了B
[42.***.***.34] 1天前
匿名网友 选择了A
[61.***.***.130] 1天前
匿名网友 选择了B
[224.***.***.199] 1天前
匿名网友 选择了C
[46.***.***.37] 1天前
匿名网友 选择了B
[252.***.***.89] 1天前
匿名网友 选择了C
[189.***.***.41] 1天前
匿名网友 选择了A
[248.***.***.96] 1天前
匿名网友 选择了C
[24.***.***.11] 1天前
加载更多
提交我的答案
登录提交答案,可赢取奖励机会。
更多“以下选项中不能正确把 cl 定义成结构体变量的是 _____…”相关的问题
第1题
以下选项中不能正确把cl定义成结构体变量的是(  )。

(A)typedef struct

{ int red;

intgreen;

int blue;

)COLOR;

COLOR cl:

(B)struct color cl

{int red;

intgreen;

int blue;

};

(C)stmct color

{int red;

int green;

int blue;

}cl;

(D)struct

{int red;

int green;

int blue;

}cl;

点击查看答案
第2题
以下选项中,能定义s为合法的结构体变量的是( ).

A、struct CLASS{double a;char b[5];} CLASS s;

B、typedef CLASS{double a;char b[5];} CLASS s;

C、typedef struct CLASS{double a;char b[5];}s;

D、struct{double a;char b[10];}s;

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

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; /* 成绩 */ };

点击查看答案
第4题
已知结构体类型如下: typedef struct LNode{ ElemType data; //数据域 struct LNode *next; //指针域 }LNode,*LinkList; // *LinkList为Lnode类型的指针 建立一个10个结点的链表,数据域依次为1-10.
点击查看答案
第5题
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

点击查看答案
第6题
struct abc{int x;char y[20];double z;} data; 则以下给结构体变量成员x赋值语句中正确的是( )。

A、*data.x=100;

B、data->x=100;

C、data.(*x)=100;

D、data.x=100;

点击查看答案
第7题
若定义结构体:则结构体变量s1所占的内存空间为( )
若定义结构体:

则结构体变量s1所占的内存空间为( )

A.15

B. sizeof(int)+ sizeof(char[15]) + sizeof(float)

C. sizeof(s1)

D. max( sizeof(int),sizeof(char[15]) ,sizeof(float))

点击查看答案
第8题
若有如下结构体定义 struct student { int id,age; char name[32]; }s; 则表达式sizeof(s)的值为

A、40

B、48

C、32

D、语句错误

点击查看答案
第9题
CRH2 动车组旅客信息显示系统显示的内容是依靠GPS传输的信息来保证到达或经过指定的位置时触发广播和必要的信息显示()

此题为判断题(对,错)。

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

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

简答题官方微信公众号

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

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

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