What is the difference between stderr and stdout in the context of buffering?

  • stderr is unbuffered, while stdout is line-buffered by default.
  • stderr is line-buffered, while stdout is unbuffered.
  • stderr is fully buffered, while stdout is line-buffered.
  • stderr is fully buffered, while stdout is unbuffered.
The correct option is "stderr is unbuffered, while stdout is line-buffered by default." stderr is typically unbuffered, meaning that data is immediately written to the output, while stdout is line-buffered, meaning that it is buffered until a newline character is encountered.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *