What is the use of fflush(stdin) in c++?

Answers were Sorted based on User's Feedback



What is the use of fflush(stdin) in c++?..

Answer / saravanan

fflush will used to write file immediately instead of
storing in the memory.

Is This Answer Correct ?    7 Yes 2 No

What is the use of fflush(stdin) in c++?..

Answer / paul

For input streams, fflush() discards any buffered data that has been fetched from the underlying file, but has not been by the application.

Is This Answer Correct ?    1 Yes 2 No

What is the use of fflush(stdin) in c++?..

Answer / poonam

Is it used for any memory management or buffer management?
I thought over it and the answer i got was that it is used
for buffer memory management...Is it correct?

Is This Answer Correct ?    1 Yes 2 No

What is the use of fflush(stdin) in c++?..

Answer / madhava

enter a result at the input given data to particular location

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More OOPS Interview Questions

3. Differentiate verification and validation.

1 Answers  


How many types of access specifier in c# and vb.net?

1 Answers   Infosys,


what is a virtual class?

5 Answers   Cap Gemini, IBM, Infosys, Trinity Technologies,


What is encapsulation example?

0 Answers  


#include <iostream> using namespace std; struct wow { int x; }; int main() { wow a; a.x = 22; int c = a.x; int *b = new int; cout << c; return 0; } option: No output 0 22 -(11) Will not compile

1 Answers   CTS, Wipro,






Write a program to find out the number of palindromes in a sentence.

1 Answers   TCS,


what is the virtual function overhead, and what is it used for ? i hope i can get and appropriate answers, thanks a lot....

6 Answers  


Why is abstraction used?

0 Answers  


What are the OOPS concepts?

106 Answers   A1 Technology, Bajaj, CTS, EDS, HP, Infosys, Intel, Microsoft, MNC, Persistent, PlanetSoft, ProConstructor, TCS, Virtusa, Wipro, YSoft Solutions,


In multiple inheritance , to create sub class object , is there need to create objects for its superclasses??? in java and c++ both. Actually i have some information that is , all available members from its superclasses , memory created in subclass obj , so no need to create object for its superclasses...??? Thanks in Advance

1 Answers  


Can we create object of interface?

0 Answers  


What is object and class in oops?

0 Answers  


Categories