• 2022-06-07
    #include<stdio.h>voidfun(int *s, int m, int n){ int t; while(m<n) {t=s[m]; s[m]=s[n]; s[n]=t; m++; n--;}}main(){ int a[5]={1,2,3,4,5},k;fun(a,0,4);for(k=0;k<5;k++) printf("%d ",a[k]);}