#include <stdio.h> int main() { void reverse(int *x,int n); int r,i,a[10] = {1,2,3,4,5,6,7,8,9,10}; for(i=0;i<10;i++) { printf("%d ",*(a+i)); } printf("\n"); reverse(a,10); for(r=0;r<10;r++) { printf("%d ",a[r]); } return 0; } void reverse(int *x,int n) { int *p,*i,*q,temn,w; p=x; i=x+n-1; printf("%d\n",*i); for(w=0;w<(n/2);w++,p++,i--); { temn=*p; *p=*i; *i=temn; } }