... void main() { char arr[90]="text"; chat *ptr; reverse(arr, ptr); } ghj void reverse(char arr[],char *ptr) { ... ptr=arr; ... ... }