Solved
Why does a call to printf need to be terminated by a newline ?
Works:
printf("hello world\n");
Does not work:
printf("goodbye world !");
I have tried to find the answer in gcc´without success.
Works:
printf("hello world\n");
Does not work:
printf("goodbye world !");
I have tried to find the answer in gcc´without success.
That is a standard properity of stdout, it is buffered. Use stderr and output is immediate.Or fflush stdout.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.