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