单项选择题

下面程序段的正确输出是
int w=4,x=3,y=2,z=1;
cout<<(w<x w:z<y z:x)<<endl;

A.0
B.1
C.2
D.3
<上一题 目录 下一题>
热门 试题

单项选择题
若执行以下程序时从键盘上输入9,则辅出结果是 main() int n; cin>>n; if(n++<10)cout<<n<<endl; else cout<<n--<<endl;
A.11
B.10
C.9
D.8
单项选择题
阅读以下程序 #includc<iostream.h> vold main() Char line[10]; cin>>line; cout<<line<<endl; 如运行时输入This is example.<CR>,则程序的输出结果是
A.This
B.This is
C.This is a
D.This is an example.
相关试题
  • 下列程序执行结果是 #include <iostrea...
  • 有以下程序 main(int argc, chara*ar...
  • 下列程序执行后的输出结果是 void funcl...
  • 设有以下类和对象的定义: class A publ...
  • 下列叙述中正确的是