单选题:有下列程序: #include<stdi0.h>voidfun(int*a,int*b){int*C; c=a;a=b;

  • 题目分类:C++
  • 题目类型:单选题
  • 查看权限:VIP
题目内容:
有下列程序:
#include<stdi0.h>
voidfun(int*a,int*b)
{int*C;
c=a;a=b;b=C;
}
voidmain(  )
{intx=3,y=5,*p=&x,*q=&y;
fun(p,q);printf("%d,%d,",*P,*q);
fun(&x,&y);printf("%d,%d\n",*P,*q)
}
程序运行后的输出结果是(  )。 A.3,5,5,3
B.3,5,3,5
C.5,3,3,5
D.5,3,5,3

参考答案:
答案解析:

有下列程序: #include<stdi0.h>voidmain(  ) {inta1,a2charc1,c2; sca

有下列程序: #includevoidmain(  ) {inta1,a2charc1,c2; scanf("%d%c%d%C",&a

查看答案

Why did the phone charge surprise the man?

Why did the phone charge surprise the man?A.He didn’t make any calls. B.He didn

查看答案

一Could you__________me your bike.*Mine is broken. 一Sure.It’

一Could you__________me your bike.*Mine is broken. 一Sure.It’s there.A.borrow B.

查看答案

Trains or buses stop there.

Trains or buses stop there.

查看答案

有如下程序: #include<iostream>usingnamespacestd; classXA{inta; pu

有如下程序: #includeusingnamespacestd; classXA{inta; public: staticin

查看答案