首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读下面程序: #include<iostream.h> void fun(int n) { int x(5); static int y(10); if(n>0) { ++x; ++y; cou
阅读下面程序: #include<iostream.h> void fun(int n) { int x(5); static int y(10); if(n>0) { ++x; ++y; cou
admin
2012-01-20
34
问题
阅读下面程序:
#include<iostream.h>
void fun(int n)
{
int x(5);
static int y(10);
if(n>0)
{
++x;
++y;
cout<<x<<","<<y<<end1;
}
}
void main()
{
int m(1);
fun(m);
}
则该程序的输出结果是______。
选项
答案
6,11
解析
转载请注明原文地址:https://kaotiyun.com/show/mRVp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
C源程序中不能表示的数制是()。
以下选项中关于程序模块化的叙述错误的是()。
若变量都己正确说明,则以下程序段()。#include<stdio.h>main(){inta=8;intb=6:printf(a>b?"&&&a:%d":"!!!b=%d",a,b);}
有以下程序:#include<stdio.h>main(){intc=0,k:for(k=1;k<3;k++)switch(k){default:c+=k;case
以下程序的功能是判断输入的一个整数是否能被3或7整除,若能整除,输出YES,否则输出NO。在下划线处应填入的选项是#include<stdio.h>main(){intk;printf("Enteraintnumber:"
有以下程序,其中%u表示按无符号整数输出()。main(){unsignedintx=0xFFFF;/*x的初值为十六进制数*/printf(’’%u\n’’,x);}程序运行后的输出结果是()。
随机试题
关于异型淋巴细胞的叙述,正确的是
根据企业所得税法的规定,公益性社会团体,是指符合下列()条件的基金会、慈善组织等社会团体。
王老师执教以来非常注重尖子生的培养,他培养的尖子生在竞赛中获得了很好的成绩。然而他对不听课、表现顽皮的学生采取罚站、不许进教室等措施惩罚他们。学生家长知道后多次找他交换意见,但王老师不以为然,反而对家长进行批评。问题:运用教师职业道德的相关知识对王老师做
按照我国民法,下面关于相邻关系的说法正确的是()。
简述财产法律关系与人身法律关系的区别。
[*]
某计算机系统中有一个CPU、一台输入设备和一台输出设备,假设系统中有三个作业T1、T2和T3,系统采用优先级调度,且T1的优先级>T2的优先级>T3的优先级。若每个作业具有三个程序段:输入Ii、计算Ci和输出P.(i=1,2,3),执行顺序为Ii、Ci、P
Wemaylookattheworldaroundus,butsomehowwemanagenottoseeituntilwhateverwe’vebecomeusedtosuddenlydisappears.
A、Membershipinafoodco-op.B、Thebenefitsofhealthfood.C、Shoppinginthesupermarket.D、Thecurrentcostoffood.A对话开门见山地
TheDrugsDon’tWorkA)Severalmonthsago,theU.S.CentersforDiseaseControlandPreventionreleasedastunningreporto
最新回复
(
0
)