title: Reverse Iterator not working as expected C++
body: <p>Hey i was wondering why this code doesnt give 1 to output.</p>
  <pre><code>
      vector&lt;int&gt; myVector{1, 2, 3, 4, 6};
      cout &lt;&lt; *myVector.rend() &lt;&lt; endl;
  
  </code></pre>
  <p>Output should be 1 but it gives random numbers.</p>
  <p>But in this example everything is okay.</p>
  <pre><code>
      vector&lt;int&gt; myVector{1, 2, 3, 4, 6};
      cout &lt;&lt; *myVector.rbegin() &lt;&lt; endl;
  
  </code></pre>
  <p>Output : 6</p>
  <p>Thanks.</p>