title: How to create this formula?
body: <p>I've training / homework to create the following formula applied to C:</p>
  
  <blockquote>
    <p>How to calculate the address to an element in a matrix of integers, if
    the starting address of the matrix is known, the size is known and the
    row and the columns of the element is known.</p>
  </blockquote>
  
  <p>Say the matrix is a[b][c].
  The starting address is then <code>a</code> or equivalently <code>&amp;a[0][0]</code></p>
  
  <p>Numbers of rows is b.</p>
  
  <p>Number of columns is c.</p>
  
  <p>Every element should have size <code>sizeof(int)</code> so then the address would be <code>a + b*sizeof(int) + a*sizeof(int)</code></p>
  
  <p>Is this formula correct?</p>