Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is purpose of fflush(stdin) function


Answer Posted / ashutosh

the use of fflush(stdin) is to clear the input buffer bcoz when ever we take an input the space is allocated to it but after its scope gets over, the input is removed but the space allocated is as it is. it can be used only by using headerfile
#include<stdio.h>

Is This Answer Correct ?    60 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c method?

1005


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

1777


Write a code to generate a series where the next element is the sum of last k terms.

1229


What does *p++ do?

1026


Write a program to swap two numbers without using third variable?

1310


Why is it usually a bad idea to use gets()? Suggest a workaround.

1791


Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.

1066


What is dynamic dispatch in c++?

1066


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1919


Is using exit() the same as using return?

1366


Why enum is used in c?

964


Difference between Shallow copy and Deep copy?

2027


What is the difference between array_name and &array_name?

1307


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

2076


in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above

1036