单选题:有下列程序: #include<stdi0.h>voidfun(inta,intb){intt; t=a;a=b;b=t

  • 题目分类:C++
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
有下列程序:
#include<stdi0.h>
voidfun(inta,intb)
{intt;
t=a;a=b;b=t;
voidmain(  )
{intc[1O]={1,2,3,4,5,6,7,8,9,0},i;
for(i=0;i<10;i+=2)fun(c[i],c[i+1]);
for(i=0;i<10;i++)printf(”%d,”,c[i]);
printf("\n");
}
程序的运行结果是(  )。 A.1,2,3,4,5,6,7,8,9,0
B.2,1,4,3,6,5,8,7,0,9
C.0,9,8,7,6,5,4,3,2,1
D.0,1,2,3,4,5,6,7,8,9

参考答案:
答案解析:

有3个关系R、S和T如下: 由关系R和S通过运算得到关系T,则所使用的运算为(  )。

有3个关系R、S和T如下:由关系R和S通过运算得到关系T,则所使用的运算为(  )。A.笛卡儿积 B.交 C.并 D.自然连接

查看答案

That book is _________ and I would like to have it back, pl

That book is _________ and I would like to have it back, please. A.my B.mine C.

查看答案

下列结构体类型说明和变量定义中正确的是(  )。

下列结构体类型说明和变量定义中正确的是(  )。A.typedefstruct; {intn;charC;)REC; RECt1,t2; B.structR

查看答案

若有定义“inta[2][3];”,下列选项中对a数组元素正确引用的是(  )。

若有定义“inta[2][3];”,下列选项中对a数组元素正确引用的是(  )。 A.a[2][!1] B.a[2][3] C.a[0][3] D.a[1>2]

查看答案

下列程序段中包含4个函数,其中具有隐含this指针的是(  )。 intfunl(  ); classTest{publ

下列程序段中包含4个函数,其中具有隐含this指针的是(  )。 intfunl(  ); classTest{public: intfun2(  );

查看答案