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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1781


Plese get me a perfect C++ program for railway/airway reservation with all details.

3431


What is oops in programming?

570


What does and I oop mean in text?

625


program for insertion ,deletion,sorting in double link list

2284






Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

701


What is encapsulation and abstraction? How are they implemented in C++?

638


How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction

1655


What does and I oop and sksksk mean?

654


What does it mean when someone says I oop?

587


What is encapsulation with example?

582


Why multiple inheritance is not allowed?

586


What is class and object in oops?

613


write a programe to calculate the simple intrest and compund intrest using by function overlading

1670


Is react oop?

612