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 |
How can I ensure that integer arithmetic doesnt overflow?
Compare and contrast compilers from interpreters.
How can a number be converted to a string?
How can you tell whether two strings are the same?
program to find the magic square
WHAT IS FLOAT?
How can I sort a linked list?
main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); }
how to find greatet of 10 numbers without using array?
write a progam to compare the string using switch case?
what is difference b/w extern & volatile variable??
I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?