Examveda

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


This Question Belongs to C Program >> File Input Output

Join The Discussion

Related Questions on File Input Output