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

explain what are pointers?

978


What are the basic data types associated with c?

1242


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1246


What is the use of ?: Operator?

1095


What is a char in c?

946


what are non standard function in c

1875


When should I declare a function?

1078


What’s a signal? Explain what do I use signals for?

1071


What is malloc and calloc?

1018


What are logical errors and how does it differ from syntax errors?

1247


What are the types of macro formats?

1073


what is uses of .net

1695


Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58

1486


What functions are used in dynamic memory allocation in c?

1035


What is unsigned int in c?

956