0
Weird behavior
Can anybody know whatâs wrong with this little code, where the 10 came from?! https://code.sololearn.com/cTqhnqLBQt7h/?ref=app
2 Answers
+ 2
10 is the ascii code for the line feed.
I found this in the lesson about fgets:
"Another difference between gets and fgets is that the newline character is stored by fgets."
https://www.sololearn.com/learn/C/2936/?ref=app
gets (input) works.
0
Thatâs wright, thanks..đ