The syntax of fgets is char *fgets(char *line, int maxline, FILE *fp).which is true for fgets.fgets
A. returns line on success
B. On end of file or error it returns NULL.
C. Nothing
D. Both a & b
Answer:A
The syntax of fgets is char *fgets(char *line, int maxline, FILE *fp).which is true for fgets.fgets
A. returns line on success B. On end of file or error it returns NULL. C. Nothing D. Both a & b