123q @ 2020-03-31 14:43:02
#include<stdio.h>
#include<string.h>
int main()
{
char c[1000];
gets(c);
int i,len;
len=strlen(c);
for(int i=len-1;i>=0;i--)
printf("%c",c[i]);
return 0;
}
by Sol1 @ 2020-03-31 14:43:46
@123q 不要用gets
by hanyuchen2019 @ 2020-03-31 14:47:50
gets
有内存溢出的风险,在C11被移除了
by hanyuchen2019 @ 2020-03-31 14:48:25
@123q
by 123q @ 2020-03-31 20:20:50
@hanyuchen2019 噢噢,谢谢啦
by 123q @ 2020-03-31 20:21:03
@ClCN 谢谢啦
by hanyuchen2019 @ 2020-03-31 20:25:07
@123q 不客气^_^