Answer Posted / ashutosh
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 |
Post New Answer View All Answers
explain what are pointers?
What are the basic data types associated with c?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
What is the use of ?: Operator?
What is a char in c?
what are non standard function in c
When should I declare a function?
What’s a signal? Explain what do I use signals for?
What is malloc and calloc?
What are logical errors and how does it differ from syntax errors?
What are the types of macro formats?
what is uses of .net
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
What functions are used in dynamic memory allocation in c?
What is unsigned int in c?