C – Fflush Flushall

Home/Learn C Programming/C - String/C – Fflush Flushall
C – Fflush Flushall 2017-08-06T09:23:50+00:00

fflush :

             fflush flushes the specified stream. Syntax for using fflush in c is given below.

 Syntax:

fflush(stream_name);

Example :  fflush(stdin);

flushall :

              flushall flushes all open streams. Syntax for using flushall is given below.

Syntax: 

flushall();

C – FFLUSH AND FLUSHALL EXAMPLE PROGRAM :

 

Prev Next