title: What is/are the EOF in ubuntu and also about Kernighan and Ritchie
body: <p>I have started learning C and I have also started using Ubuntu. I am writing the codes in vim through the terminal. I have been studying from Kernighan and Ritchie. Here is the code - </p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
   int c;
   while ( (c = getchar()) != EOF)
   putchar(c);
   return 0;
   }
  </code></pre>
  
  <p>Now, my question is :- </p>
  
  <ol>
  <li>The program stops if i press ctrl+z , but it also terminates if i press ctrl+D , when i read about it online it says ctrl+z is the EOF in windows and ctrl+d in linux. Does it mean that both of them are EOF in linux? If so , what are the other EOF ? </li>
  <li>Is it okay to have such complex questions in the first chapter of this book ? or am I supposed to just read through it and these kind of thoughts will get cleared as I read on ?</li>
  </ol>