Q. Which function checks the end-of-file indicator for the given stream in C?
β
Correct Answer: (C)
feof()
Explanation: The C library function feof() checks the end-of-file indicator for the given stream.
Syntax:
int feof(FILE *stream);
Syntax:
int feof(FILE *stream);