C
- voluntas
- @ignis_fatuus
- ブン
- @Linda_pp
- 清楚なC++メイドBOT
- @tzik_tack
- 長谷川一輝
- wraith13
- @jj1bdx
- @cpp_akira
- 安藤敏彦
- @srz_zumix
- Siv3D
- takezoh
- まろ
- @okdshin
- @hnokx
- @ishidakei
- @take_cheeze
- TAKEI Yuya
- @mumumu
- I (@wx257osn2)
- Tommy6
- @tyottyoworks
- ___shanon
- わたやん
- @KorekaraSEDB
- @kariya_mitsuru
- @ciniml
- @beam2d
- @grafi_tt
- @nekketsuuu
- LouiS0616
- @volanja
- 大鎌広
- むてら
- ガチKGB
- 三重野賢人
x
17
1
2
3
4
int main() {
5
char str[len];
6
int i;
7
do {
8
gets(str);
9
for (i = (strlen(str) - 1); i > -1; i--) {
10
printf("%c", str[i]);
11
}
12
printf("\n");
13
} while (str[0] != '\0');
14
15
return 0;
16
}
17
$ gcc prog.c -Wall -Wextra -std=gnu11
Stdin
aiueo
hoge
foobar
Start
prog.c: In function 'main': prog.c:8:17: warning: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration] 8 | gets(str); | ^~~~ | fgets /tmp/ccwv7M7F.o: In function `main': prog.c:(.text+0x15): warning: the `gets' function is dangerous and should not be used.
oeuia egoh
0
Finish