简单的倒叙应用---倒序打印字符串(C语言)

void reverseStr(char* str){

  if(*str==''){

    return;

  }

  reverseStr(str+1);

  printf("%c ",*str);

}

void test(){

  char * str = "abcdefg";

  reverseStr(str);

 }

int main(){

  test();

}

原文地址:https://www.cnblogs.com/yyslif/p/11559829.html