单项选择题

下面程序段的运行结果是
   #include<iostream.h>
   void main( )
    char*s="abcde";
   S+=2;
   cout<<&s;

A.cde
B.字符'c'
C.字符'c'的地址
D.无确定的输出结果

<上一题 目录 下一题>
热门 试题

单项选择题
与y=(x>0 1:x<0 -1:0);的功能相同的if语句是
A.if(x>0)y=1
   else if(x<0)y=-1;
   else y=O;
B.if(x)
  if(x>0)y=1;
  else if(x<0)y=-1;
C.y=-1;
  if(x)
  if(x>0)y=1;
  else if(x==0)y=0;
  else y=-1;
D.y=0;
  if(x>=0)
  if(x>0)y=1;
  else y=-1;
单项选择题
如果表达式--X+y中,--是作为成员函数重载的,+是作为成员函数重载的,则该表达式还可为
A.operator+(x.operator--(0))
B.y,operator+(x.operator--( ))
C.operator+(operator--t(x,0))
D.operator+(x.operator- -t( ))
相关试题
  • 下面程序应能对两个整型变量的值进行交换。...
  • 下面程序的结果是 #include<iostream.h...
  • A
  • A.X=3 Y=5 X=3 Y=5 H=4 W...
  • 有以下程序 #include<iostream.h> vo...