1. 4
  1.  

  2. 1

    nit: The early example of the laborious way of doing error checking doesn’t work, because it doesn’t account for default buffering of stdout. printf(...) will probably successfully print everything into the line buffer.