title: Is gets() considered a C function or a C++ function?
body: <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  void main(){
      char name[20];
      gets(name);
      cout&lt;&lt;name&lt;&lt;endl;
  }
  </code></pre>
  
  <p>I can't found answer in google, function gets() is C or C++ language function ? Because in university I must use only C++ functions.  </p>