title: warning: implicit declaration of function ‘gets’; did you mean ‘fgets’? [-Wimplicit-function-declaration]
body: <p>I have just begun my programming journey. I code in the Ubuntu terminal. I am facing a problem while compiling a program where the <code>gets()</code> function is used.</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  
  /*example of multi char i/p function*/
  void main()
  {
      char loki[10];
      gets(loki);
      printf("puts(loki)");
  }
  </code></pre>
  
  <p>The error I am getting is:</p>
  
  <pre><code>warning: 'implicit declaration of function ‘gets’; did you mean ‘fgets’? [-Wimplicit-function-declaration]
  </code></pre>