首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
若有以下结构体定义,则是正确的引用或定义。struct example{ int x; int y;}v1;
若有以下结构体定义,则是正确的引用或定义。struct example{ int x; int y;}v1;
admin
2010-05-22
18
问题
若有以下结构体定义,则是正确的引用或定义。struct example{ int x; int y;}v1;
选项
A、example.x=10
B、examplev2.x=10
C、struct v2;v2.x=10
D、struct example v2={10};
答案
8
解析
在定义结构体变量时,不能只用结构体名example或关键字struct进行定义,必需要用结构体类型名struct example定义,在引用结构体成员变量时,需要用结构体变量名进行引用,所以选D。
转载请注明原文地址:https://kaotiyun.com/show/wRWp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
在窗体上画一个文本框,其名称为Text1,然后编写如下程序:OptionBase1PrivateSubForm_Click()DimArr(10)AsIntegerFori=6To10Arr(i)=i-3NextiText1
下列叙述中正确的是
窗体上有一个列表框控件Listl。以下叙述中错误的是
下列关于二叉树的叙述中,正确的是()。
已知在4行3列的全局数组score(4,3)中存放了4个学生3门课程的考试成绩(均为整数)。现需要计算每个学生的总分,某人编写程序如下:OptionBase1PrivateSubCommand1_Click()DimsumAsInteg
以下关于函数过程的叙述中,正确的是
要使两个单选按钮属于同一个框架,下面三种操作方法中正确的是()。①先画一个框架,再在框架中画两个单选按钮②先画一个框架,再在框架外画两个单选按钮,然后把单选按钮拖到框架中③先画两个单选按钮,再画框架将单选按钮框起来
设一棵完全二叉树共有700个结点,则此二叉树中的叶子结点数为
某棵树中共有25个结点,且只有度为3的结点和叶子结点,其中叶子结点有7个,则该树中度为3的结点数为()。
有以下程序(提示:程序中fseek(fp,-2L*sizeof(int),SEEK_END);语句的作用是使位置指针从文件尾向前移 2*sizeof(int)字节) #include <stdio.h> main( ) { FILE*fp;
随机试题
用内标法测定燕麦敌含量,称样8.12g,加入内标物正十八烷1.88g,测得样品峰面积Ai=68.00cm2,内标物峰面积As=87.00cm2,已知燕麦敌对内标物的相对校正因子fi/s’=2.40。燕麦敌的质量分数应为()。
管理的首要职能是
协调性子宫收缩乏力多为:
女性,60岁。经绝5年,阴道流血淋漓不尽10天就诊,肥胖,有慢性高血压史。妇检:外阴、阴道正常,宫颈光滑,子宫稍大,双附件无异常。最可能的诊断是
受理执业医师注册申请的卫生行政部门,对应当准予注册的,准予注册期限是自收到申请之日起
在小腿外侧,外踝尖上8寸,胫骨前肌外缘;条口旁开1寸的穴位是
一般应设置封闭楼梯间的建筑物有()。
在施工合同中期付款时,对承包人施工质量不合格部分,发包人有权拒付该部分的工程款,这是发包人行使的( )。
被采取强制措施的犯罪嫌疑人、被告人和正在服刑的罪犯,如实供述司法机关还未掌握的本人其他罪行的,属于立功行为。()
某二叉树共有60个叶子结点与50个度为1的结点,则该二叉树中的总结点数为()。
最新回复
(
0
)