[C Language] compile a function reverse_string (char * string) (Recursive Implementation) to sort the characters in the parameter string in reverse order. You cannot use the string operation function in the C function library ., C Standard Library
// Write a function reverse_string (char * string) (Recursive Implementation) // implement: sort the characters in the parameter string in reverse order. // Requirement: strings in the C function library cannot be used to operate functions. # Include <stdio. h> # include <assert. h> void reverse_string (char const * string) {assert (string! = NULL); if (* string! = '\ 0') {string ++; reverse_string (string); printf ("% c", * (string-1) ;}} int main () {char * string = "doudoudezuoye"; printf ("the original string is % s \ n, which is:", string); reverse_string (string ); printf ("\ n"); return 0 ;}