Page 1 of 1

The syntax of fgets is char *fgets(char *line, int maxline, FILE *fp). Which is true for fgets?

Posted: Wed Jul 13, 2022 7:54 pm
by answerhappygod
a) Returns line on success
b) On end of file or error it returns NULL
c) Nothing
d) Both returns line on success & On end of file or error it returns NULL