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

the difference between new and malloc

5 Answers   Siemens,


what is the realstic modeling?

1 Answers  


What is constructor in oop?

0 Answers  


What is protected in oop?

0 Answers  


namespace is working on which compiler?

3 Answers  






What is the difference between a constructor and a destructor?

0 Answers  


why c++ is a highlevel language

3 Answers   Satyam, Tech Mahindra,


Name an advantage of array over linked list?

24 Answers   GML, IBM, Software Solutions,


char* ptr = "Rahul"; *ptr++; printf("%s",ptr); What will be the output

9 Answers   Persistent,


Base class has two public data members. How can i derive a new class with one datamember as public and another data member as private?.

2 Answers  


What is a class in oop?

0 Answers  


What is polymorphism programming?

0 Answers  


Categories