首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面程序的输出结果是【 】。 #include<iostream.h> int d=1; int fun(int p){ static int d=5; d+=p; cout<<d<<" ";
下面程序的输出结果是【 】。 #include<iostream.h> int d=1; int fun(int p){ static int d=5; d+=p; cout<<d<<" ";
admin
2009-01-15
53
问题
下面程序的输出结果是【 】。
#include<iostream.h>
int d=1;
int fun(int p){
static int d=5;
d+=p;
cout<<d<<" ";
return d;
}
void main(){
int a:3;
cout<<fun(a+fun(D) )<<end1;
}
选项
答案
6 15 15
解析
转载请注明原文地址:https://kaotiyun.com/show/lykp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
有以下程序:#include<stdio.h>intf(intx);main(){intn=1,m; m=f(f(f(n)));printf("%d\n",m);}intf(intx){returnx*2;}程序运
有以下程序#include<stdio.h>main(){inta=5,b=1,t;t=(a<<2)|b;printf("%d\n",t);}程序运行后的输出结果是
阅读下面程序,程序执行后的结果为()。#include"stdio.h"main(){char*str="abcdefghijklmnopq";while(*str++!=’e’);printf("%c\n".*str);}
有以下函数:intaaa(char*s){char*t=s;while(*t++);t--;return(t-s);}以下关于aaa函数功能叙述正确的是()。
下列叙述中正确的是
不能正确表示数学式的表达式是
在C语言中do-while语句中结束该循环的条件为()。
关于C语言程序的叙述中错误的是()。
以下叙述中错误的是
若有走义语句:doublex[5]={1.0,2.0,3.o,4.0,5.0),*p=x;则错误引用x数组元素的是
随机试题
咽腭部手术体位是腮腺手术体位是
临床上常用于有脓液渗出性感染根管治疗的根管充填材料是
窦道的主要发病机制是
小儿指纹紫黑主()
阻火器中阻止火焰音速、超音速传播的阻火器称作()。
唐宋八大家不包括:
在京剧艺术中,性格比较天真活泼、爽朗泼辣,举止也比较轻盈伶俐的青年妇女角色称为:
TheySayIreland’stheBestIrelandisthebestplaceintheworldtoliveinfor2005,accordingtoalifequalityranking
Since2007,theAmericanPsychologicalAssociation(APA)hasconductedasurveyofdifferentaspectsofstressinAmerica,Thisye
A、Convenience.B、RangeoftheproductC、Thesizeofthead.D、Thereputationandtheimage.C本题考查对细节的记忆,答案为C。符合短文听力“听到什么选什么”的解题原
最新回复
(
0
)