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 you pass an array to a function by value?
int main() { int *p=new int; *p=10; del p; cout<<*p; *p= 60; cout<<*p; } what will be the output & why?
Function to find the given number is a power of 2 or not?
Find the highest of three numbers and print them using ascending orders?
how do you execute a c program in unix.
difference between loading and linking
what about "char *(*(*a[])())();"
who is the father of c
What are the benefits of c language?
How do you list files in a directory?
Write a C++ program to give the number of days in each month according to what the user entered. example: the user enters June the program must count number of days from January up to June
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.