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

What is command routing in MFC

1 Answers   GE,


just right the logic of it 1--> If few people are electing then every time ur candidate should win 2--> arrange books in box, if box carry weight == books weight then take another box..... find the no of box required.

0 Answers  


What is an interface in oop?

0 Answers  


Write a program to get the binary tree.

3 Answers   ABC,


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

0 Answers  






Which is not an object oriented programming language?

0 Answers  


string is a class or data type in java?

3 Answers  


What is destructor in oop?

0 Answers  


What is debug class?what is trace class? What differences are between them? With examples.

0 Answers  


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<<k; } //please comment on the output

0 Answers  


Is following functions are said to be overloaded? int add(int a,int b) char *add(int a,int b)

4 Answers  


what is main difference between object oriented object base

2 Answers   Wipro,


Categories