单项选择题

以下程序的输出结果是
#include<iostream.h>
void main( )
int x=1,y=3;
cout << x++ << ",";
int x=0;x+=y*2;
cout <<X <<"," <<y << ",";

cout << x <<","<< y;

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

单项选择题
下列程序中画线处应填入的语句是 class Base public: void fun( )cout<< Base of fun <<end1; ; class Derived:public Base void fun( ) ______ 显示基类的成员函数fun cout<< Derived of fun <<end1; ;
A.fun( );
B.Base.fun( );
C.Base: :fun( );
D.Base->fun( );
单项选择题
下面程序的输出结果是 #include<iostream.h> #include<string.h> void main( ) char p1[10],p2[10] strcpy(p1, abc ); strcpy(p2, ABC ); char str[50]= xyz ; strcpy(str+2,strcat(p1,p2)); cout<<str;
A.xyzabcABC
B.zabcABC
C.xyabcABC
D.yzabcABC
相关试题
  • C++语言中,表示一条语句结束的标号是()。
  • 若已定义: int a[ ]=0,1,2,3...
  • 函数fun的返回值是 fun(char*a,char*b...
  • 在深度为5的满二叉树中,叶子结点的个数为
  • B,)先进的软件开发工具和环境