title: 2d array rows/columns length C
body: <p>I need to declare a 2d array to represent the size of chess-board. However, I'm having a trouble understanding how would I actually calculate the width and the length of the board. 
  I would like to know how could I calculate size of the rows and columns of my 2d array</p>
  
  <p>Say, <code>int boardSize[5][5]</code>? </p>
  
  <pre><code>int main()
  {
     int boardSize[5][5];
     int boardWidth=?
     int boardHeight =?
     createBoard(boardWidth, boardHeight);
  }
  
   int createBoard(int width, int height)
   {
     // code that actually creates board //
   }
  </code></pre>
  
  <p>Sorry, for not being specific in the begging. So, here I need to calculate boardwidth and boardheight variables? How do I do that from the declared array above. Thank you!</p>