title: Getting const char* array from function
body: <p>Need help in getting <code>const char*</code> array from function so elements can be printed in main.</p>
  
  <p>main:</p>
  
  <pre><code>const char* values[3];
  strings_to_array();
  
  printf("%s\n", values[1]);
  printf("%s\n", values[2]);
  </code></pre>
  
  <p>function:</p>
  
  <pre><code>const char* strings_to_array()
  {
      char one_str[16];
      char two_str[16];
      char three_str[16];
  
      strcpy(one_str, "one");
      strcpy(two_str, "two");
      strcpy(three_str, "three");
  
      const char* values[] = {one_str, two_str, three_str};
      return values;
  }
  </code></pre>
  
  <p>What is incorrect here and how to get values to main?</p>