C – Fputc

C – Fputc 2017-07-20T09:14:59+00:00

fputc()

Declaration:

int fputc(int ch,FILE *stream);

The fputc() function writes the character ch to the specified stream at the current file position and then advance the file position indicator. Even though the ch is declared to be an int , it is converted by fputc() into an unsigned char.

The value returned by the fputc() is the value of the character written . if an error occurs, EOF is returned.

C – FPUTC() EXAMPLE PROGRAM :

Prev Next