#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> void reverse_string(const char *arr) { assert(arr); if (*arr != '\0') { arr ++; reverse_string(arr); printf("%c", *(arr - 1)); } } int main() { char *arr = "abcdefghigk"; reverse_string(arr); system("pause"); return 0; }