title: Why when using fgets() do we need to remove the string -1 when we are declaring it?
body: <p>Why when we are declaring the function fgets() we need to put -1 string from the original char? like this:</p>
  <pre><code>#include &lt;stdlib.h&gt;
  #include &lt;stdio.h&gt;
  
  int main ()
  {
      char string[15]; 
  
      fgets(string,14,stdin); // &lt; the original variable has 15 strings, but in fgets() we need to set 14, why?
      printf(&quot;%s\n&quot;, string);
  
      return 0;
      getchar();
  }
  </code></pre>
  <p>I'm a beginner in C, so i'm having this doubt in my mind</p>