Does anyone know why if i put a printf just before a delay it waits until the delay is finished before it prints de message?
Code1 with sleep():
int
the standard output is not flush until you output a '\n' char.
try printf ("hi world\n");