title: reading k&r(c book) and confusing 1st chapter code
body: <pre><code>#include &lt;stdio.h&gt;
  /* copy input to output; 2nd version*/
  main()
  {
      int c;
  
      while ((c = getchar()) != EOF)
          putchar(c);
  }
  </code></pre>
  
  <p>this is very confusing... since you never escape the while loop. I've learned that EOF is -1. i type -1 but it just reprints it. It's a never ending loop. Over time did the library get changed and differs from what the book intended it to be? when i say library i mean the putchar()/getchar() that's in the library... sorry.</p>