FILL_IN_THE_BLANK_FOR_PROGRAMMING:Jmu-c-string reverse order output
This problem requires the use of recursive functions to achieve reverse order output of strings. For example, input 'ABC', output 'CBA'`
```c++
#include
void reverse_ str(char *p);
int main()
{
char str[80];
gets(str);
reverse_ str(str);
return 0;
}
void reverse_ str(char *p){
char *q;
q=p;
if(@@[*p](3)){
q=p+1;
@@[ reverse_ str(q);]( 3)
@@[putchar(*p);]( 3)
}
}
```
answer:First empty: * P
The second blank: reverse_ str(q);
The third blank: putchar (* P);
```c++
#include
void reverse_ str(char *p);
int main()
{
char str[80];
gets(str);
reverse_ str(str);
return 0;
}
void reverse_ str(char *p){
char *q;
q=p;
if(@@[*p](3)){
q=p+1;
@@[ reverse_ str(q);]( 3)
@@[putchar(*p);]( 3)
}
}
```
answer:First empty: * P
The second blank: reverse_ str(q);
The third blank: putchar (* P);