En breve, usar setbuf(stdin,NULL); antes del siguiente scanf(). Para mas detalles ver https://ibonelli.github.io/info1_presentations/Clase06_Punteros_y_Manejo_Strings.html#/5/2