title: Why doesn't C++ support functions returning arrays?
body: <p>Some languages enable you to just declare a function returning an array like a normal function, like Java:</p>
  
  <pre><code>public String[] funcarray() {
     String[] test = new String[]{"hi", "hello"};
     return test;
  }
  </code></pre>
  
  <p>Why doesn't C++ support something like <code>int[] funcarray(){}</code> ?
  You can return an array, but it's a real hassle to make such a function. And also, I heard somewhere that strings are just arrays of char. So if you can return a string in C++, why not an array?</p>