单项选择题

下列程序的输出结果是 ______。
#include<iostream.h>
void main()
int x=6,y=8;
if(x1++<6)
cout<<++y<<end1;
if(x>6)
cout<<--y<<end1;
else
cout<<y++<<end1;

A.8
B.9
C.7
D.编译不成功
<上一题 目录 下一题>
热门 试题

单项选择题
以下程序的输出结果是 ______。 #include<iostream.h> #include<string.h> void main() char *p1= ,hello ,*p2= world! ,str[50]: Hii ; strcpy(str+2,p1); strcat(str,p2); cout<<str;
A.Hii,hello world!
B.hello world!
C.ii,hello world!
D.Hi,hello world!
单项选择题
以下程序的输出结果是 ______。 #include<iostream.h> void main() char w[][10]= ABC , DEFGH , IJKL , MNOP k; for(k=1;k<3;k++) cout<<w[k]<< ;
A.ABC FGH KL
B.ABC EFG IJ U
C.EFG JK 0
D.DEFGH IJKL
相关试题
  • 所有的函数模板定义都是以关键字 [15]...
  • 如果要在类的对象上使用运算符,除了运算符...
  • 派生类中所定义的虚函数的 [12] 不影...
  • 若有int x[5],*p=x;则数组元素x[...
  • [9] 是一种特殊的成员函数,户主要用来...