How do you clear the input buffer in C? | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 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 Respuestas
+ 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