填空题

下面程序的结果为______。
#include<iostream.h>
void main()

int a=1,b=2;
bool c=1;
if((a>b)||c)cout<<"true"<<end1;
else
cout<<"false"<<end1;

【参考答案】

true。
<上一题 目录 下一题>
热门 试题

填空题
下面程序的输出结果是______。#define MIN(a,b) (((a)<(b))a:b)#include <iostream.h>void main()int x= 3, y=5;cout<< MIN(x,y)<<end1;
填空题
下面程序的运行结果是 【8】 和 【9】 。 #include<iostream.h> #define N 10 #defines(x)X*X #define f(x)(X*X) void main() int il,i2; i1=1000 s(N);i2=1000 f(N); cout << i1 << << i2;
相关试题
  • 下列程序中需要清理动态分配的数组,划线处...
  • 设置虚基类的目的是解决二义性问题,通过用...
  • 表达式“c3=c1.operator+(c2)”或...
  • 虚函数必须是类的______。
  • 在面向对象的程序设计中,将数据和处理数据...