新手求助,总出现这个问题
#include<stdio.h>int main()
{
void inv(int x[],int n);
int i,a[10]={3,78,9,55,46,19,38,395,14,16};
printf("The original array:\n");
for(i=0;i<10;i++)
printf("%4d\n",a[i]);
inv(a,10);
printf("The array has been inverted:\n");
for(i=0;i<10;i++)
printf("%4d\n",a[i]);
return 0;
}
void intv(int x[],int n)
{
int i,t;
for(i=0;i<5;i++,n--)
{
t=x[i];
x[i]=x[n-1];
x[n-1]=t;
}
}
错误每次都是C:\Users\haword\Desktop\编程练习\collect2.exe [Error] ld returned 1 exit status
求大神帮助!