单选题 有以下程序
#include<stdio.h>
void fun(int *p, int*q)
{int t;
t=*p; *p=*q; *q=t;
*q=*p;
}
main()
{ int a=0, b=9;
fun(&a, &b);
printf("%d%d/n", a, b);
}
程序的输出结果是______。
【正确答案】 D
【答案解析】[解析] fun函数完成的功能是将两个数交换,然后再将第一个数赋值给第二个数,main中调用后a b分别为9 9,答案选择D。