Home » C Programming » Input & Output » Question
  1. The syntax of fgets is char *fgets(char *line, int maxline, FILE *fp). Which is true for fgets?
    1. On end of file or error it returns NULL
    2. Returns line on success
    3. Both On end of file or error it returns NULL & returns line on success
    4. Nothing
    5. None of these
Correct Option: C

Both On end of file or error it returns NULL & returns line on success



Your comments will be displayed only after manual approval.