I'm new to C, sorry if my question is too basic.I often see code like:
printf("%d", counter);
fflush(stdout);
my guess is that it won't print output if the buffer is not full therefore you need to flush the stdout. But I tried to not use fflush, only printf, I still have out put printed on the screen, then what's the point to use flush?