title: Is accessing the same array address repeatedly both spatial and temporal locality?
body: <p>So I'm having questions about whether or not this portion of code has any spatial locality at all. I have a strong feeling it does have temporal locality. A peer of mine says there is some spatial locality, but I feel like it does not have spatial locality. The portion of code is this: </p>
  
  <pre><code>for (i = 0; i &lt; S; i++) {
  read A[2];
  }
  </code></pre>