[求助]一道关于指针的题目
int a[8]={1,2,3,4,5,6,7,8};
int *p;
p=&a[8];代表什么?
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{f(p,q);p++;q--;} 又怎样理解?
for(i=0;i<8;i++)printf("%d,",a[i]);
}