[求助错在哪里
viod inv(int x[],int n){
int temp,i,j,m=(n-1)/2;
for(i=0;i<=m;i++)
{j=n-1-i;
temp=x[i];x[i]=x[j];x[j]=temp;}
return;
}
main()
{
int i,a[10]={3,7,9,11,0,6,7,5,4,2};
printf("The original array:\n");
for(i=0;i<10;i++)
printf("%d,",a[i]);
printf("\n");
inv(a,10);
printf("The array has been inverted:\n");
for(i=0;i<=10;i++)
printf("%d,"a[i]);
printf("\n");
}
系统编译的时候说
Error C:\TURBOC2\FLY.C 1:Declartion syntax error
这是为什么?