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


Answers were Sorted based on User's Feedback



what is purpose of fflush(stdin) function ..

Answer / rajnish

to clear input buffer

Is This Answer Correct ?    70 Yes 10 No

what is purpose of fflush(stdin) function ..

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

what is purpose of fflush(stdin) function ..

Answer / addu

fflush is used to clear all non printable characters which are existed through standard input i.e.,stdin

Is This Answer Correct ?    14 Yes 3 No

what is purpose of fflush(stdin) function ..

Answer / revathi pawar

to clear the thngs which r stored in memory..
the disadv s that we cant c the clearance of data

Is This Answer Correct ?    8 Yes 12 No

Post New Answer

More C Interview Questions

Why pointers are used in c?

0 Answers  


If input is 123 then how to print 100 and 20 and 3 seperately?

4 Answers  


What is a program flowchart and explain how does it help in writing a program?

0 Answers  


which one is better structure or union?(other than the space occupied )

2 Answers  


what value is returned to operating system after program execution?

0 Answers  


main() { int a=4,b=2; a=b<<a + b>>2; printf("%d", a); }

11 Answers   HCL, Vector, Vector India, Vector Solutions, Wipro,


How to calculate Total working time using Login and logout?

2 Answers   CTS, Cygnus, Infosys, Signal Networks, TCS, Wipro,


Is it acceptable to declare/define a variable in a c header?

0 Answers  


Write a program to generate the first n terms in the series --- 9,11,20,31,...,82

1 Answers   Cognizant,


Define Spanning-Tree Protocol (STP)

0 Answers  


What does the file stdio.h contain?

0 Answers  


Write a c program using for loop to print typical pattern if number of rows is entered by keyboard. ABCBA AB BA A A

1 Answers  


Categories