Node:Uncoordinated output, Next:Global variables and recursion, Previous:Array out of bounds, Up:Run-time errors
Uncoordinated output
You may occasionally experience strange effects when writing output
to the screen, such as no output at all until the input is complete,
or spontaneous bursts of output at seemingly random intervals. This sort
of problem usually has to do with the way the output is buffered.
The solution is usually to write a newline character (\n
) to the
output when you are ready to display it, or to use a function like
fflush
to flush the buffer. (See Stream buffering, for more
information.)