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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main purpose of inheritance law?

663


c++ program to swap the objects of two different classes

1752


What are two types of polymorphism?

607


What is abstract class in oop?

526


What is inheritance in simple words?

617






what is graphics

2001


write string class as your own class in java without using any built-in function

1966


Is html an oop?

571


Why do we use polymorphism in oops?

571


Why is polymorphism used?

576


How oops is better than procedural?

581


Which method cannot be overridden?

572


Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.

622


What do you mean by variable?

567


Explain the advantages of inheritance.

666