what is purpose of fflush(stdin) function
Answers were Sorted based on User's Feedback
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 |
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 |
Why pointers are used in c?
If input is 123 then how to print 100 and 20 and 3 seperately?
What is a program flowchart and explain how does it help in writing a program?
which one is better structure or union?(other than the space occupied )
what value is returned to operating system after program execution?
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?
Write a program to generate the first n terms in the series --- 9,11,20,31,...,82
Define Spanning-Tree Protocol (STP)
What does the file stdio.h contain?
Write a c program using for loop to print typical pattern if number of rows is entered by keyboard. ABCBA AB BA A A