0

In ubuntu,My code is:

 int main(){
    printf("signal test");
    while(1);
    return 0;

}

and it can'd display: signal test

stephen
  • 78
  • 12

1 Answers1

1

This is because of buffering, as no newline is printed, nothing is flushed to the output.

Joop Eggen
  • 96,344
  • 7
  • 73
  • 121