title: How to make string function with user input in C?
body: <p>I know how to make function with int, double, float with user input inside(im currently using scanf).</p>
  
  <pre><code>int getData(){
      int a;
      scanf("%i",&amp;a);
      return a;
  }
  </code></pre>
  
  <p>but how to make function with string type and user input inside, then we return that value with type string?</p>