问题
单项选择题
下列程序的输出结果是 ______。
#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.编译不成功
答案
参考答案:C
下列程序的输出结果是 ______。
#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.编译不成功
参考答案:C