title: Accessing elements of a matrix row-wise versus column-wise
body: <p>A matrix <code>A[i][j]</code> is given. If we want to add the elements of the matrix, which method is better and why?</p>
  
  <ol>
  <li>column wise</li>
  <li>row wise</li>
  </ol>
  
  <p>From my point of view, row wise is better because in array representation elements are stored in contiguous memory locations so accessing them takes less  time.But since in RAM fetching every location takes equal time, does it matter?</p>