title: Cannot convert from char (*)[10] to char** in return
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4636144/declaring-a-function-that-return-a-2d-array-in-a-header-file">Declaring a function that return a 2D array in a header file?</a>  </p>
  </blockquote>
  
  
  
  <p>I am trying to have a simple getter function for a 2D array, and I can't seem to figure out the correct syntax to send it.</p>
  
  <p>Currently, I have the following:</p>
  
  <pre><code>class Sample
  {   
  public:
      char **get2D();
  
  private:
      static const int x = 8;
      static const int y = 10;
      char two_d[x][y];
  };
  
  
  char** Sample::get2D()
  {
      return  two_d;
  };
  </code></pre>