0

fgets() function will come in concept of file handling or unformatted input?

fgets()

13th Aug 2022, 6:11 AM
Suraj Joshi
1 Antwort
+ 1
As I understand it, fgets() reads a C-string (char array) from a stream. It could be stdin for common user input or file stream. I think it basically is meant for reading a string disregarding the source. I'm not sure what you mean by "concept of file handling" or "unformatted inpur" here. Perhaps you can elaborate further?
29th Aug 2022, 6:40 AM
Ipang