What is fflush(stdin)?What are the uses and application of it?

fflush(stdin) is non-standard and not supported by many compilers. fflush is used to force the operating system to write everything to the output stream. Since stdin is an input stream and not an output stream fflush(stdin) may or may not work, depending on what comiler you use.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.