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 |
What are Macros? What are its advantages and disadvantages?
why do we use pointer instead directly acessing the data?
what is the defrenece between structure and union
What are global variables and explain how do you declare them?
A C E G H +B D F A I ------------ E F G H D
What does sizeof int return?
a simple program in c language
what is computer engg
Explain what is a stream?
int x=5; printf("%d%d%d",x,x<<2,x>>2);
write a c program to remove all the duplicate characters in a string and replace with single character? ex:-input- AAABBBCCC output- ABC
in malloc and calloc which one is fast and why?