title: How to make return char function in c programming?
body: <p>I'm Trying to do some simple c programming that will return the char value. The program is running with no error but, the output of the expected string does not appear. What I expected it will return the <code>Halloworld</code> when i run it.</p>
  
  <pre class="lang-c prettyprint-override"><code>#include &lt;stdio.h&gt;
  #include &lt;string.h&gt;
  
  char screen(char c[]);
  
  int main(){
  
      char b[] = "Hallo";
      //screen(b);
      printf("%s",screen(b));
  }
  
  char screen(char c[]){
  
      strcat(c, "world");
      return c;
  }
  </code></pre>