-
Which of the following is the right declaration for fgets() inside the library?
-
- int *fgets(char *line, FILE *fp);
- char *fgets(char *line, FILE *fp);
- int *fgets(char *line, int maxline, FILE *fp);
- char *fgets(char *line, int maxline, FILE *fp);
- None of these
Correct Option: D
char *fgets(char *line, int maxline, FILE *fp);