When you do a printf without a \n character at the end of your string, you should flush the output.Code:printf("Is that okay? (y/n): "); fflush(stdin);
You probably misinterpreted the advice given to you
Also, I think that a 1000 char buffer with fgets is a bit much for a y/n answer. I personally would have used getchar().Code:printf("Is that okay? (y/n): "); fflush(stdout);