Code:
printf("1.bla bla");
printf("2.bla bla);
In this example its not guaranteed that either will be written to the screen immediatly. However they will be written to the buffer, and when they are displayed to the screen will be written in order
Trying running this code:
Code:
unsigned i,j;
for (i=0; i < UINT_MAX; i++)
for (j=0; j < UINT_MAX; j++)
putchar('.');
And see what happens. Then try this:
Code:
unsigned i,j;
for (i=0; i < UINT_MAX; i++)
for (j=0; j < UINT_MAX; j++)
{
putchar('.');
fflush(stdout);
}
And see what you get.