void reverseStr(char* str){
if(*str=='\0'){
return;
}
reverseStr(str+1);
printf("%c\n",*str);
}
void test(){
char * str = "abcdefg";
reverseStr(str);
}
int main(){
test();
}
标签:void,倒叙,C语言,char,str,test,reverseStr,倒序
来源: https://www.cnblogs.com/yyslif/p/11559829.html