首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
以下程序运行后,输出结果是 #define PT 5.5 #define S(x) PT*x*x #include<stdio.h> main() { int a=1,b=2; printf("%4.1f\n"
以下程序运行后,输出结果是 #define PT 5.5 #define S(x) PT*x*x #include<stdio.h> main() { int a=1,b=2; printf("%4.1f\n"
admin
2010-12-10
23
问题
以下程序运行后,输出结果是 #define PT 5.5 #define S(x) PT*x*x #include<stdio.h> main() { int a=1,b=2; printf("%4.1f\n",s(a+b));}
选项
A、49.5
B、9.5
C、22
D、45.0
答案
A
解析
转载请注明原文地址:https://kaotiyun.com/show/BLPp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
下列叙述中错误的是()。
在VB集成环境中要结束一个正在运行的工程,可单击工具栏上的一个按钮,这个按钮是()。
以下关于多重窗体程序的叙述中,错误的是( )。
PrivateFunctionf(yAsInteger) f=y*yEndFunction运行上述程序,如下叙述中正确的是( )。
在利用菜单编辑器设计菜单时,为了把组合键“Alt+x”设置为“退出(x)”菜单项的访问键,可以将该菜单项的标题设置为()。
要清除已经在图片框Picture1中打印的字符串而不清除图片框中的图像,应使用语句()。
数据字典(DD)所定义的对象都包含于
定义无符号整数类为UInt,下面可以作为类UInt实例化值的是()。
在考生文件夹中有一个工程文件sjt5.vbp。该程序的功能是:分别统计7×7数组四周元素之和及四周元素中能够被7整除的元素的个数,并将统计结果在相应的标签中显示。请仔细阅读已有程序,然后在标出的位置编写适当的程序,以实现上述的功能。要求:不得修改
数列1,1,2,3,5,8,13,21,…的规律是从第一个数开始,每个数足它前面两个数之和。在考生目录下有一个工程文件sit5.vbp。窗体中已经给出了所有控件,如图2-87所示。请编写适当的事件过程实现以下功能:在Text1中输入整数40,单击“计算”按
随机试题
随境转移主要见于
患儿9个月,发热2天,呕吐、腹泻两天入院。大便20余次/天,水样便,无腥臭味,尿少。查体:P128次/分,精神萎靡,皮肤弹性差,前囟、眼窝凹陷,唇干,心肺(-)。大便镜检:WBC0~1个/HP,脂肪滴(+),血电解质正常。诊断为轮状病毒肠炎。患儿出现臀
(2005年)下列极限计算中,错误的是()。
定量风险分析的方法有()。
某企业2005年A产品销售收入为4000万元,总成本为3000万元,其中固定成本为600万元。假设2006年该企业变动成本率维持在2005年的水平,现有两种信用政策可供选用:甲方案给予客户45天信用期限(n/45),预计销售收入为5000万元
Whichoftheletter"a"inthefollowingwordshasadifferentpronunciationfromothers?
唐人古体古体诗,亦名古诗、古风或往体诗,指的是产生于唐以前并和唐代新出现的近体诗(又名今体诗)相对的一种诗体。它的特点是格律限制不太严格,篇幅可长可短,押韵比较自由灵活,不必拘守对偶、声律,有四言、五言、七言、杂言等多种形式。不过唐人的古体以五言
从形式上说,教育影响是指()
ThelongestriverinAustraliais______
Whatdoesthispassagemainlydescribe?Howto______.Whichwayisthebesttoarrangeyourresume?Toarrangeit______.
最新回复
(
0
)