这个程序有什么问题啊?
#include<stdio.h>void main()
{
int a[]={4,5,4,7};
int *p;
int index;
for(index=0,index<4,index++,p=a;p++;)
printf("%d %d\n",a[index],*p);
}
#include<stdio.h> void main() { int a[]={4,5,4,7}; int *p; int index; for(index = 0, p = a; index < 4; index++, p++) //for(index=0,index<4,index++,p=a;p++;) 这句令人蛋疼 printf("%d %d\n",a[index],*p); }