首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下选项中不能正确把cl定义成结构体变量的是( )。
以下选项中不能正确把cl定义成结构体变量的是( )。
admin
2009-01-15
44
问题
以下选项中不能正确把cl定义成结构体变量的是( )。
选项
A、typedef struct { int red; int green; int blue; } COLOR; COLOR cl;
B、struct color cl { int red; int green; int blue; }
C、struct color { int red; int green; int blue; }cl;
D、struct { int red; int green; int blue; }cl;
答案
2
解析
本题选项A)、C)、D)是定义结构体及其变量的三种正确的形式,能正确将c1定义为结构体变量。选项B)错误。
转载请注明原文地址:https://kaotiyun.com/show/2mXp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
窗体上有一个名称为Combo1的组合框,一个名称为Command1的命令按钮。要求编写程序,在组合框中输入一个字符串,当单击命令按钮时,将该字符串逐项与组合框中原有列表项进行比较,若有相同列表项,则将其删除;若没有相同列表项,则将其添加到组合框中。现有人编
下列叙述中正确的是
设有如下通用过程:PublicFunctionFun(xStrAsString)AsString DimtStrAsString,strLAsInteger tStr="" strL=Len(xStr) i=
在考生文件夹下有一个工程文件sjt4.vbp,其窗体上有两个标题分别为“添加”和“退出”的命令按钮,一个内容为空的列表框List1。请画一个标签,其名称为Label1,标题为“请输入编号”;再画一个名称为Text1,初始值为空的文本框,如图7所示。程序功能
执行语句PrintRight$(Mid$("ABCDEFG",2,5),3)后的输出是
下面为单精度实型(即单精度浮点型)变量的是
在窗体上有一个名称为Command1的命令按钮,并编写有如下事件过程:PrivateSubCommand1_Click()Move500,500EndSub程序执行时,单击命令按钮,实现的功能是()。
在三级模式之间引入两层映像,其主要功能之一是()。
对长度为10的线性表进行冒泡排序,最坏情况下需要比较的次数为
下列数据结构中,属于非线性结构的是( )。
随机试题
雨天安全行车的注意事项是什么?
呼吸道具有
中国目前房地产代理活动的主要形式为()。
施工方案经济分析的常用方法是什么?设备负荷试运转应怎样来组织?
当无圈梁和梁垫时,板、次梁与主梁交叉处,其上层钢筋的绑扎位置正确的是()。
在运用控制小组进程技巧时,工作者要针对组员的语言行为及背后的思想适当给出解释,这样做的目的是()。
阅读《济南的冬天》的教学实录片段,回答问题。(总结部分)师:现在我们已经领略了济南这个城市冬天的美妙了,最后让我们一起来总结一下这篇文章每一段的主旨。谁能告诉我,第一段主要写了什么?生:写了济南作为一个北方城市却能拥有一个温暖
我国古代“皇帝”作为国家元首的正式称号,始于()。
公安工作是政策性和法律性相结合的一项工作。()
Thelasthalfofthenineteenthcentury_____thesteadyimprovementinthemeansoftravel.
最新回复
(
0
)