title: How to print a vector in reverse order?
body: <p>I have a vector (<code>v</code>) whose elements are ordered from lowest to highest. In order to print the items in reverse order (from highest to lowest), I have decided to write this code:</p>
  <pre><code>void highest_lowest(int v[], int size) {
      int i;
  
      for (i = size; i &gt;= 1; i--) {
          printf(&quot;v[%d] = %d\n&quot;, i, v[i]);
      }
  }
  </code></pre>
  <p>but it prints this:</p>
  <pre><code>v[4] = 2003516626
  v[3] = 6422476
  v[2] = -2
  v[1] = 6422108
  
  </code></pre>
  <p>Does anyone know where the error is??</p>