Understanding file descriptors and standard error streams
This is an easy systems-level question that tests foundational knowledge of how operating systems manage I/O streams in C and C++. It's the kind of basic concept that underpins more complex debugging, logging, and process-management tasks in systems programming.
To answer questions in this area, you need to know the conventions that Unix-like operating systems use to represent the standard input, output, and error channels as numeric identifiers. This knowledge is essential when writing code that redirects streams, captures diagnostic output, or builds tools that interact with process I/O at a low level.
- File descriptor table and kernel I/O abstractions
- Standard streams in POSIX systems
- Stream redirection and process communication