0

What should I use?? gets()?fgets()? scanf()? And why?

29th Apr 2021, 10:17 PM
Mohammad Mehedi Hasan
Mohammad Mehedi Hasan - avatar
4 ответов
+ 2
Dont use gets, use fgets or scanf
29th Apr 2021, 10:20 PM
Slick
Slick - avatar
+ 1
Of course, you just use them to get input from the stream. scanf does it with formatting
29th Apr 2021, 10:25 PM
Slick
Slick - avatar
0
Slick , I'm sorry, I have edited my question I forgot to ask the reason behind your suggestion.. Can you kindly explain, why fgets/scanf?
29th Apr 2021, 10:23 PM
Mohammad Mehedi Hasan
Mohammad Mehedi Hasan - avatar