How do you clear the input buffer in C? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 4

How do you clear the input buffer in C?

How do you clear the scanf input buffer in C?

29th Jun 2019, 4:31 AM
haydenki
haydenki - avatar
3 Antworten
+ 2
By using fflush().for this we use Stdlib. h header file
30th Jun 2019, 11:34 AM
Koppuravuri Sravanthi
+ 1
fflush().
2nd Jul 2019, 5:03 AM
AAYUSH PAGARE🇮🇳
AAYUSH PAGARE🇮🇳 - avatar