title: Is it possible to declare a global 2D array in C/C++?
body: <p>When I try to declare a <code>global</code> two-dimensional <strong>array</strong> in <code>C++</code> like so:</p>
  
  <pre><code>int maxX = 10;
  int maxZ = 10;
  SDL_Rect mapX[maxX][maxZ];
  </code></pre>
  
  <p>I get an error that says <br><code>error: variable-size type declared outside of any function</code></p>