POPMUISE
同形式参数型式有关。形式参数 int array[],int b[5] 作实际参数用, 只需写 b#include <stdio.h>void reverse(int array[], int size) {int i,t;for (i=0;i<size/2;i++){t = array[i];array[i]=array[size-1-i];array[size-1-i]=t;}}main(){int b[5]={1,2,3,4,5};int c[6]={1,2,3,4,5,6};int i;reverse(b,5);reverse(c,6);for (i=0;i<5;i++) printf("%d ",b[i]);printf("\n");for (i=0;i<6;i++) printf("%d ",c[i]);return 0;}