У меня есть этот код:
#include <stdio.h>
#include <unistd.h>
int main()
{
while(1)
{
fprintf(stdout,"hello-out");
fprintf(stderr,"hello-err");
sleep(1);
}
return 0;
}
Выходной сигнал hello-err
hello-err
hello-err
hello-err
hello-err
hello-err
с интервалом 1 с.
Я хочу знать, почему приветствие никогда не печатается.