What can be the best way to flush the stdin in a .C program in VC++ along with getchar()?
int c;
while ( ( c = getchar() ) != EOF && c != '\n' );
looks very odd to me.
fflush();
and
scanf ( "%*[^\n]" );
getchar();
is not working in VC++ in case of a .C program.