I'm using eclipse in Windows, and minGW. I write the easy code like this.
#include <stdio.h>
int main()
{
char c;
printf("input: ");
scanf("%c",&c);
return 0;
}
Buffer error is rised, and I search the stackoverflow. It told me to use fflush(). And it works. But, I must write fflush() after each printf(). I don't wanna do this. I want to solve this problem in one statement.