Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
12 years ago

how to flush stdin buffer between two scanf?

Hi, I think this is a beginner-level question. Much appreciate your answers in advance! The following is my simple C-code: #include <stdio.h># include <string.h> void main(void) { ...