title: Finding FORTRAN array location, 4-dimensional array
body: <p>Hey guys, I have a question. 
  If given a four dimensional array in FORTRAN, and told to find a location of a certain part of it (with a starting location of 200 and 4 bytes per integer). Is there a formula to find the location if is stored in row-major and column-major order.
  <br> 
  <br>Basiically given array A(x:X, y:Y, z:Z, q:q) and told to find the location at A(a,b,c,d) what is the formula for finding the location</p>