单项选择题

执行下列程序段,结果是
#include<iostream.h>
void main( )
int x=40;
char y='C';
int n;
n=(x&0xff)&&(y>'B');
cout<<n;

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

单项选择题
如果表达式++x y中,++是作为友元函数重载的, 是作为成员函数重载的,则该表达式还可为
A.(operator++(x)).operator/(y)
B.(operator++(0)).operator/(y)
C.operator/((operator++(x,0)),y)
D.operator/((operator++(0)),y)
单项选择题
有以下程序 #include<iostream.h> float fun(int x,int y) return(x+y); void main( ) int a=2,b=5,c=8; cout<<fun((int)fun(a+c,b) ,a-c) ;程序运行后的输出结果是
A.编译出错
B.9
C.21
D.9.0
相关试题
  • 下列程序的运行结果是 #include<iostrea...
  • 以下程序的输出结果是 #include<iostrea...
  • 若执行下面的程序时,从键盘上输入5和2,...
  • 下列程序是用来判断数组中特定元素的位置所...
  • 下面程序的结果是 #include<iostream.h...