首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读下列程序,则程序的输出结果为______。 #include "stdio.h" struet ty { int data; char c;}; main( ) { street ty a={30,’x’};
阅读下列程序,则程序的输出结果为______。 #include "stdio.h" struet ty { int data; char c;}; main( ) { street ty a={30,’x’};
admin
2010-09-05
13
问题
阅读下列程序,则程序的输出结果为______。
#include "stdio.h"
struet ty
{ int data;
char c;};
main( )
{ street ty a={30,’x’};
fun(a);
printf("%d%c",a.data,a.c);}
fun(struct ty b)
{ b.data=20;
b.c=’y’;}
选项
答案
30x
解析
本题的参数传递属于值传递,所以被调用函数内不能改变调用函数中的数据。
转载请注明原文地址:https://kaotiyun.com/show/WYWp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
下面叙述中错误的是()。
(1)在考生文件夹下有一个工程文件sjt3.vbp,相应的窗体文件为sjt3.frm,在窗体上有一个命令按钮(名称为Command1,标题为“计算并输出”)和两个文本框(名称分别为Text1和Text2),如图3-90所示。程序运行后,单击命令按钮,即可计
下面不属于软件设计阶段任务的是
假定有如下的程序段:DimintVarAsIntegerintvar=TruePrintintVar则输出结果是
某人编写了如下程序,用来求10个整数(整数从键盘输入)中的最大值:PrivateSubCommand1_Click() Dima(10)AsInteger,maxAsInteger Fork=1To10 a(k)=In
计算下面分段函数的正确语句是( )。
在考生文件夹下有一个工程文件sjt5.vbp,其窗体上有两个标题分别为“读数据”和“统计”的命令按钮。请添加两个标签,其名称分别是Labell和Label2,标题分别为“单词的平均长度为”和“最长单词的长度为”;再添加两个名称分别为Textl和Text2,
以下能正确定义数据类型TelBook的代码是
下面说法中正确的是()。
随机试题
资产评估方法的选择主要应考虑
Hewastoldhecouldjointhearmywhenhe________oldenough.
选用不当窝洞消毒剂引起牙髓病变的主要原因是药物的
膏淋虚证的治疗原则是
“至虚有盛候”的证候性质是
消费指标包括()。
符合建筑工程保险责任终止的条件不包括()。
假设某公司2016年7月9日的一份可转换债券价值的评估数据如下:纯债券价值740元、转换价值765元和期权价值125元,则下列说法正确的有()。
我国幼儿园是对()周岁以上学龄前幼儿实施保育和教育的机构。
ElleWoodshasitall.She’sthepresidentofhersorority,aHawaiianTropicgirl,MissJuneinhercampuscalendar,and,above
最新回复
(
0
)