The syntax of fgets is char *fgets(char *line, int maxline, FILE *fp). Which is true for fgets?
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
Answer: Option D
Join The Discussion