(26)有以下程序#include void fun( int *a,int *b){int *c;c=a;a=b;b=c;}main(){int x=3,y-5,*P=&x,*q=

13 查阅

(26)有以下程序

#include

void fun( int *a,int *b)

{int *c;

c=a;a=b;b=c;

}

main()

{int x=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

参考答案:

B

计算机二级