如题所述
代码文本:
#include "stdio.h"
int main(int argc,char *argv[]){
char s[100],*p;
printf("Please enter a string...\n");
scanf("%99s",s);//输入字符串
for(p=s;*p!='\0';p++);
for(p--;p>=s;p--)
printf("%c",*p);
putchar('\n');
return 0;
}
(比较简单,但若帮助了你,还是点一下采纳吧)
温馨提示:答案为网友推荐,仅供参考