void fun(int a[], int n){ int i,t; for (i=0; i<n/2; i++) { t=a[i]; a[i] = a[n - 1 - i]; a[ n - i - 1 ] = t; }}