meaning of fflush(stdin) in c
Answers
Answered by
0
Hi there!
□ The answer to this is that fflush(stream) is only formally defined for output streams, so fflush(stdout) is OK, but fflush(stdin) is not.
□ The purpose is to make the OS flush any buffers to the underlying file.
Hope it helps...
□ The answer to this is that fflush(stream) is only formally defined for output streams, so fflush(stdout) is OK, but fflush(stdin) is not.
□ The purpose is to make the OS flush any buffers to the underlying file.
Hope it helps...
Similar questions