New course! Every coder should learn Generative AI!
Try a free lesson+ 4
How do you clear the input buffer in C?
How do you clear the scanf input buffer in C?
3 Answers
+ 2
By using fflush().for this we use Stdlib. h header file
+ 1
fflush().
How do you clear the scanf input buffer in C?