首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列程序的输出结果是( )。 #include <stdio.h> struct abc { int a, b, c, s;}; main() { struct abc s[2]={{1,2,3},{4,5,6}}
下列程序的输出结果是( )。 #include <stdio.h> struct abc { int a, b, c, s;}; main() { struct abc s[2]={{1,2,3},{4,5,6}}
admin
2009-01-15
27
问题
下列程序的输出结果是( )。 #include <stdio.h> struct abc { int a, b, c, s;}; main() { struct abc s[2]={{1,2,3},{4,5,6}}; int t; t=s[0].a+s[1].b; printf("%d\n",t); }
选项
A、5
B、6
C、7
D、8
答案
2
解析
在本题中,s[0].a=1,s[1].b=5,所以输出结果为6。
转载请注明原文地址:https://kaotiyun.com/show/QUXp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
下面不能在信息框中输出”VisualBasic”的是()。
执行下列语句:strInput=InputBox("请输入字符串","字符串对话框","字符串")将显示输入对话框。此时如果直接单击"确定"按钮,则变量strInput的内容是( )。
如果在列表框List1中没有选中项目,则List1.ListIndex的值为
表达式Sgn(0.25)的值是()。
以下表达式与Int(3.5)的值相同的是
已知:x=一6y=39则表达式“y\x*Sgn(x)”的值为
在程序中要使用Array函数给数组arr赋初值,则以下数组变量定义语句中错误的是
VB中,若没有显式声明变量的数据类型,则默认的类型是()。
内聚性是对模块功能强度的衡量,下列选项中,内聚性较弱的是()。
下面不属于软件工程的3个要素是
随机试题
拆除的模板在楼层堆放时,最基本的满足条件是()。
是关于x的一次多项式,该式中的一次项的系数是_________.
中风的病位在()
关于Na+泵的叙述错误的是
现判定某可比实例的个别因素比估价对象的差2%,则可比实例的个别因素修正系数为100/102。()
城市()的保护状况是城市文明的重要标志。
已知某工程网络计划的计算工期等于计划工期,且工作N的紧后工作均为关键工作,则工作N()。
2015年12月31日,A库存商品的账面余额为1000万元;估计售价为1020万元,估计的销售费用及相关税金为15万元。年末计提跌价准备前,A库存商品的跌价准备余额为10万元,则年末A库存商品计提存货跌价准备金额为()万元。
在良好的政治中,公共权力必须受到制约。制约公共权力的方式大致可以分为两类,一类是刚性制约;另一类是软制约,也就是道德对权力的制约。制约权力不仅要健全制度,使权力的制约具有刚性;还要发挥官德的作用,让良心制约权力。这段文字主要说明()。
WhyTheyTravel?Scholarsandstudentshavealwaysbeengreattravellers.Theofficialcasefor“academicmobility”isnow
最新回复
(
0
)