It does not affect the fork in any way.
In the first case, you end up with 8 processprocesses with nothing to write, because the output buffer was emptied already (due to the \n).
In the second case you still have 8 processprocesses, each one with a buffer containing "Hello world..." and the buffer is written at process end.