Q275
Which of the following is the right declaration for fgets() inside the library?
A.
int *fgets(char *line, int maxline, FILE *fp);
B.
char *fgets(char *line, int maxline, FILE *fp);
AnswerC.
char *fgets(char *line, FILE *fp);
D.
int *fgets(char *line, FILE *fp);
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board