C stdout print without a new line?
3 answers
Try fflush(stdout); after printf .
You can also explore setvbuf if you often call fflush and want you not to call it at all. Keep in mind that if you write a lot of output to standard output, then performance will probably be reduced when using setvbuf .
+8