title: Why does my reference update the element array it is referencing?
body: <p>Could anyone explain to me in layman's terms why my reference is updating the element array that it is referencing? I thought the whole point of a reference was to only reference a value.</p>
  <pre><code>#include &lt;iostream&gt;
  
  int main() {
  
      int arr[4] = { 0,0,0,0 };
      arr[0] = 1;
  
      int&amp; reference = arr[0];
      reference = 2;
  
      std::cout &lt;&lt; arr[0];
  
  }
  </code></pre>