首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列程序的运行结果是______。 main() { int a=1,b=10; do { b-=a;a++;}while(b--<0); printf("%d,%d\n",a,b); }
下列程序的运行结果是______。 main() { int a=1,b=10; do { b-=a;a++;}while(b--<0); printf("%d,%d\n",a,b); }
admin
2010-12-10
20
问题
下列程序的运行结果是______。
main()
{ int a=1,b=10;
do
{ b-=a;a++;}while(b--<0);
printf("%d,%d\n",a,b);
}
选项
A、PI=3.14159
答案
解析
本题先定义了一个宏名PI,以后在程序中出现PI都用3.14159替代,但是C语言规定:双引号中的宏名是不进行替换的。
转载请注明原文地址:https://kaotiyun.com/show/yLPp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
编写如下程序:PrirateSubCommand1_Click()DimBumAsIntegerDimkAsInteger,nAsIntegernum=InputBox("
设有如下程序段:DimsAsInteger,nAsIntegers=0n=1DoWhile__________s=s+nn=n+1LoopPrints以
假定Picture1和Text1分别为图片框和文本框的名称,则下列错误的语句是( )。
设a、b都是自然数,为求a除以b的余数,某人编写了以下函数:Functionfun(aAsInteger,bAsInteger)Whilea>ba=a—bWendfun=aEndFu
下面程序运行后,语句“Printi”执行的次数是()。PrivateSubForm_Click()DimiAsInteger,jAsIntegeri=0Doi=i+1For
(1)在考生文件夹下有一个工程文件sit3.vbp,其功能是:①单击“读数据”按钮,则把考生文件夹下in3.dat文件中的20个整数读入数组a中,同时显示在Text1文本框中;②单击“变换”按钮,则数组a中元素的位置自动对调(即第一个数组元
现有如下语句:x=IIf(a>50,Int(a\3),aMod2)当a=52时,x的值是( )。
下列叙述中正确的是( )。
VisualBasic中,日期“1999年6月18日”的表达形式为()。
设x=011050,则x=x&01252的值是()。
随机试题
基底神经节包括
设曲线y=f(x)由参数方程处的切线方程.
处方书写中,缩写词“bid.”表示
患者,女,27岁。左上第三磨牙颊向倾斜,食物嵌塞。拟拔除。对此最常用的麻醉方法是
三棱兼治鸡血藤兼治
定喘穴位于背部,当第7颈椎棘突下,旁开
通常()情况应选用稠度较高的沥青。
有一宗房地产,假设使用年期为无限,未来第1年年纯收益为100万元,资本化率为10%,若:(1)未来各年的纯收益在上一年的基础上增加1万元;(2)未来各年的纯收益在上一年的基础上增长1%。要求:试确定两种情况下该宗房地产的评估价值各为多少。
纳税人取得下列收入,应缴纳城市维护建设税的是()。
Thispartistotestyourabilitytodopracticalwriting.Youarerequiredtowriteabusinessletteraccordingtothefollowin
最新回复
(
0
)