首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面程序的输出结果为【 】。 #include<iostream.h> f(int a) {int b=0; static int c=3; b++; c++; return(a+ b+ c); } void main() {int a=2,i;
下面程序的输出结果为【 】。 #include<iostream.h> f(int a) {int b=0; static int c=3; b++; c++; return(a+ b+ c); } void main() {int a=2,i;
admin
2009-01-15
50
问题
下面程序的输出结果为【 】。
#include<iostream.h>
f(int a)
{int b=0;
static int c=3;
b++; c++;
return(a+ b+ c);
}
void main()
{int a=2,i;
for(i=0;i<3;i++)
cout<<f(a)<<end1;
}
选项
答案
7 8 9
解析
转载请注明原文地址:https://www.kaotiyun.com/show/pVkp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
若执行下述程序时,若从键盘输入6和8,结果为()。main(){hata,b,s;scanf("%d%dt",&a,&b);s=a;if(s=b)s*=s;printf("%d",s);}
有以下程序:main(){intn=0;do{n++;printf("%d\n",n);}while(n<=3);}程序的输出结果是()。
有三个关系R、S和T如下:则由关系R和S得到关系T的操作是()。
下列关于线性表的叙述中,不正确的是()。
一名教师可讲授多门课程,一门课程可由多名教师讲授。则实体教师和课程间的联系是()。
有三个关系R、S和T如下:则由关系R和S得到关系T的操作是()。
面向对象方法中,继承是指
软件测试的目的是
设有以下程序段structbook{floatprice;charlanguage;chartitle[20];}rec,*ptr;ptr=&rec;要求输入字符串给结构体变量rec的title成员
用链表表示线性表的优点是()。
随机试题
当我给他打电话时,他出去了。
A.急性化脓性胆囊炎B.急性化脓性胆管炎C.急性坏死性胰腺炎D.急性化脓性阑尾炎E.绞窄性肠梗阻Murphy征出现于
暑证特点,下列哪一项是错的( )
末梢血反映骨髓增生程度的最准确指标是
根据《宪法》和《组织法》的规定,下列选项正确的是:(2011—卷一—86,任)
关于甲级中央投资项目招标代理机构的资格中,有关人员和业绩说法正确的有()
反映城市土地开发强度的指标有()。
Manypeopleliketotravel.Theproblemisgettingyourpettothe【C1】______.Inrecentyears,transportingpetsonflightshas
Untilmodemtimes,atripwasoftenalonganddifficult【B1】______.Travelingbyhorseorcameloronfootwasslowandoften【B
A、Sheworksatthemeatcounter.B、Shearrangesproductsinneatpilesontheshelves.C、Shecarriesgroceriesoutofthestore
最新回复
(
0
)