首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面程序的输出结果是【 】。 #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
27
问题
下面程序的输出结果是【 】。
#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全国计算机二级
相关试题推荐
在设计计算机程序时,结构化程序的三种基本结构是()。
以下关于宏的叙述中正确的是
C语言源程序名的后缀是
一个栈的初始状态为空。现将元素1、2、3、4、5、A、B、C、D、E依次入栈,然后再依次出栈,则元素出栈的顺序是
有以下结构体说明、变量定义和赋值语句:struetSTD{charname[10];intage;charsex;}s[5],*ps;ps=&s[0];则下列scartf函数调用语句有错误的是()。
设二叉树的后序序列与中序序列均为ABCDEFGH,则该二叉树的前序序列为
对如下二叉树进行后序遍历的结果为()。
在软件开发中,需求分析阶段可以使用的工具是
下面不属于软件工程过程的4种基本活动
随机试题
心脏病产妇的分娩期处理哪项是错误的
下列药物盐炙后,能增强补益肝肾作用的是
癫痫持续状态治疗的关键是从速控制发作。
A.胃液的酸度和胃蛋白酶含量均高B.胃液的酸度和胃蛋白酶含量均低C.以胃蛋白酶含量增高为主D.以胃液的酸度增高为主E.胃液分泌的量较少食糜入胃引起胃液分泌的特点是
A、风B、寒C、暑D、湿E、燥为百病之长的病邪是
青水市政府对所属工作部门的具体行政行为进行复议,该工作部门一直推拖未提供证据,复议机关应作何种处理?()
陈文、韩耀、顾飞三人合伙开办了饭香快餐连锁店,3人共同执行合伙事务,陈文负责对外开拓市场业务,韩耀和顾飞负责店内经营。陈文为了提高市场占有率,排挤竞争对手,在未告知韩耀、顾飞的情况下散布谣言,称竞争对手闻就香快餐公司(以下简称“闻就香公司”)在其食品中使用
布雷顿森林体系实行的国际汇率制度是()。
下列有关合营安排的认定与分类的表述中,不正确的是()。
Poststations.
最新回复
(
0
)