C – FEOF

C – FEOF 2017-08-07T14:40:54+00:00

feof :

Is a macro that tests if end of file has been reached on a file stream.

Syntax :

int   feof(FILE *stream);

Return value :

  • Returns non zero if an end of file indicator was detected on the last input operation on the named stream.
  • Returns 0 if end of file has not been reached.

C – EXAMPLE PROGRAM :

Output :

Enter data :

C

Ram

Clanguage

rock

fun

end

Prev Next