d="accessing-array-elements-and-subarrays" class="section level3 unnumbered">
<h3>Accessing Array Elements and Subarrays</h3>
<p>If <code>x</code> is a 1-dimensional array of length 5, then <code>x[1]</code> is
the first element in the array and <code>x[5]</code> is the last. For a <span class="math inline">\(3 \times 4\)</span> array <code>y</code> of two dimensions, <code>y[1, 1]</code> is the first
element and <code>y[3, 4]</code> the last element. For a three-dimensional
array <code>z</code>, the first 