有以下程序
Void f(int *x,int *y)
{
Int t;
T=*x;*x=*y;*y=t;
}
Main()
{
Int a[8]={1,2,3,4,5,6,7,8},i,*p,*q;
P=a;q=&a[7];
While(p<q)
{ f(p,q);p++;q--;}
For(i=0;i<8;i++) printf("%d,",a[i]);
}
程序运行后的输出结果是______。
A.8,2,3,4,5,6,7,1, B.5,6,7,8,1,2,3,4, C.1,2,3,4,5,6,7,8, D.8,7,6,5,4,3,2,1,正确答案D