I have 3 different processes that all print out single characters using printf. But I can’t see them in the terminal. When I add a newline, printf("\n H") so each character is on a new line, I can see them. Why doesn’t it work without the newline character?
I have 3 different processes that all print out single characters using printf .
Share
Its a matter of flushing. If you flush the buffers after each
printf, you should get output closer to what you want. To flush the standard output simply dofflush( stdout ).