You are writing a C program that logs error messages. Which standard stream would be most appropriate to use for this purpose?

  • stderr
  • stdin
  • stdlog
  • stdout
The stderr stream is the standard error stream in C. It is used for error messages and is typically not buffered, making it suitable for logging error information immediately without delays.
Add your answer
Loading...

Leave a comment

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