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 calculate mean,median,mode by using c program
Write a function that accepts two numbers,say a and b and makes bth bit of a to 0.No other bits of a should get changed.
2 Answers Scientific Atlanta, Wipro,
How can I avoid the abort, retry, fail messages?
In header files whether functions are declared or defined?
write a program to convert a expression in polish notation (postfix) to inline (normal)
Explain what are preprocessor directives?
Why is C called a middle-level language?
What is d scanf?
Go through this linked list concept.While traversing through the singly linked list sometimes the following code snippet "while(head != NULL)" is used and other times "while(head->link != NULL)"is used(Here head is the pointer pointing to the first node,node has two parts data part and link part).What is the difference between head != NULL and Head->link != NULL and in which situation are they used?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
`write a program to display the recomended action depends on a color of trafic light using nested if statments
How does normalization of huge pointer works?