单项选择题

下列程序的输出结果是 ______。
#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!
单项选择题
若某完全二叉树的深度为h,则该完全二叉树中至少有 ______ 个结点。
A.2h
B.2h-1
C.2h-1-1
D.2h-1+1
相关试题
  • 已知类A中的一个成员函数的说明如下: voi...
  • 以下程序的执行结果是 ______。 #...
  • 指出下面程序段中的错误的是 ______...
  • 已知一个类A的定义如下,则执行“Ax(3)...
  • 数据库管理系统DBMS中用来定义模式、内模式...