哪位大侠帮我看看这个程序哪里错了?
程序代码:
#include<stdio.h> void main() { void inv(int x[],int n); int i,a[10]{3,7,9,11,0,6,7,5,4,2}; printf("The ariginal arra:\n"); for(i=0;i<10;i++) printf("%d\n"a[i]); inv(a,10); printf("The array has been inverted :\n"); for(i=0;i<10;i++) printf("%d\n",a[i]); } void 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; }