title: Returning multidimensional array from function
body: <p>How do I return a multidimensional array stored in a <code>private</code> field of my class?</p>
  
  <pre><code>class Myclass {
  private:
     int myarray[5][5];
  public:
     int **get_array();
  };
  
  // This does not work:
  int **Myclass::get_array() {
      return myarray;
  }
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>cannot convert <code>int (*)[5][5]</code> to <code>int**</code> in return</p>
  </blockquote>