title: How can i return a pointer to my 2d array? C++
body: <p>The following is declared as global variable in a class: </p>
  
  <pre><code>int mazeLayout[MAZEHEIGHT][MAZEWIDTH]
      ={{1,1,1,1},
        {1,0,0,0}};
  </code></pre>
  
  <p>Then i have a public function that I want to return a pointer to the array called from another function in another class/header file: </p>
  
  <pre><code>int *getMazeLayout(){return *mazeLayout};
  </code></pre>
  
  <p>I get an error in here "expected ';' before '}' token"</p>