[prev] 32 [next]

Standard Streams

A stream is a sequence of bytes

stdio.h defines three streams

  • stdin standard input stream
    scanf, getchar read from stdin
  • stdout standard output stream
    printf, putchar write to stdout
  • stderr standard error stream
    by convention used for error messages