Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
This is a discussion on How to Clear Input Buffer within the C and C++ forums, part of the Software Development category; I want to know how to clear the input buffer? Someone tell me the steps for doing the same also enrich my knowledge by putting your ideas on is it ...
|
|||||||
|
|||
|
How to Clear Input Buffer
I want to know how to clear the input buffer? Someone tell me the steps for doing the same also enrich my knowledge by putting your ideas on is it necessary that we do it while coding C program
|
| Sponsored Links |
|
|||
|
Re: How to Clear Input Buffer
This can be done by using the flush in C programming language.Sometimes it is necessary to forcefully flush a buffer to its stream. In that case this function flush can be used. The general syntax of this function is
int fflush(FILE *stream); |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|