首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下面程序的输出结果是【 】。 #define MIN(a,b) (((a)<(b))?a:b) #include <iostream.h> void main() { int x= 3, y=5; cout<< MIN(x,y)<<end1; }
下面程序的输出结果是【 】。 #define MIN(a,b) (((a)<(b))?a:b) #include <iostream.h> void main() { int x= 3, y=5; cout<< MIN(x,y)<<end1; }
admin
2009-01-15
98
问题
下面程序的输出结果是【 】。
#define MIN(a,b) (((a)<(b))?a:b)
#include <iostream.h>
void main()
{
int x= 3, y=5;
cout<< MIN(x,y)<<end1;
}
选项
答案
3
解析
转载请注明原文地址:https://kaotiyun.com/show/yMkp777K
本试题收录于:
二级C题库NCRE全国计算机二级分类
0
二级C
NCRE全国计算机二级
相关试题推荐
若要定义一个具有5个元素的整型数组,以下错误的定义语句是
有以下程序structS{inta;intb;};main(){structSa,*p=&a;a.a=99;printf("%d\n",___________);}程序要求输出结构
有以下程序#includevoidmain(){ints;scanf("%d",&s);while(s>0){switch(s){case1:printf("%d",s+5
有以下程序#includeintfun(intn){inta;if(n==1)return1;a=n+fun(n-1);return(a);}main(){printf("%d\n
下面关于位运算符的叙述,正确的是
有下列程序:#includevoidfun(int*a,intn)/*fun函数的功能是将a所指数组元素从大到小排序*/{intt,i,j;for(i=0;i
有以下程序段structst{intx;int*y;}*pt;inta[]={1,2},b[]={3,4};structstc[2]={10,a,20,b};pt=c;以下选项中表达式的值为11的是
以下函数的功能是()。voidfun(char*a,char*b){while((*b=*a)!=’\0’){a++;b++;}}
若有函数首部intfun(doublex[10],int,*n),则下列针对此函数的函数声明语句中正确的是()。
若有以下程序段structst{intn;structst*next;);structsta[3]={5,&a[1],7,&a[2],9,’\0’},*p;p=&a[0];则以下选项中值为6的表达式是
随机试题
PASSAGETWOWhatarethenegativeresultsofourculturalinstincts?
我国中小学德育的基本任务是()。
在考场上,飞进的小鸟并没有引起考生的注意,他们仍在奋笔疾书答卷。这体现的注意功能是()
下列指标中,描述抽样误差大小的指标是
管线中心定位测量中,不属于管线主点位置的是()。
组织结构设计的出发点和依据是()。
根据宪法的规定,全国人民代表大会由()。
犯罪的未完成形态只存在于以下哪项犯罪之中?()
TheNegativeInfluenceoftheInternetBarStudythepicturecarefullyandwriteanessayinwhichyoushould1)describ
有如下类定义classAnimal{public:virtualvoidName()=0;};classKoala:publicAnimal{public:voidName
最新回复
(
0
)