减肥,减肥,越减越肥
我是专业的
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
void main()
{
//void inv(int x[],int n);
void inv(int *x,int n);
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");
getch();
}