//颠倒字符串顺序
//列如:我们将runningman利用递归翻转计算。
#include<stdio.h>
void reverseSentence();
int main()
{printf("字符串输入:");reverseSentence();return 0; }void reverseSentence()
{char c;scanf("%c",&c);if(c!='\n'){reverseSentence();printf("%c",c);}}
//输入字符串:runner
//输入结果:rennur