title: I am unable to find out the memcheck error when i using valgrind on the given code
body: <p>I am unable to detect the memory error(memcheck error) . when i run the code i see some unexpected output came. so please describe what is happening in thes code.</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  char *getString()
  {
      char message[100]=&quot;Hello World&quot;;
      char *ret = message;
      return ret;
  }
  void test4()
  {
      printf(&quot;String: %s&quot;,getString());
  }
  int main()
  {
      
      test4();
      return 0;
  }
  </code></pre>