Vidyalelo
C Programming · Q111

File Input Output

Programming · C Programming · question 111

Q111

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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board