title: Cannot use .begin() or .end() on an array
body: <p>The error reads:</p>
  
  <blockquote>
    <p>request for member 'begin', 'end' in 'arr' which is non class type int[5],
    unable to deduce from expression error.</p>
  </blockquote>
  
  <p>My code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  int main()
  {
      int * mypointer;
  
      int arr[5] = {1,3,5,7,9};
  
      mypointer = arr;
  
      for(auto it = arr.begin(); it != arr.end(); ++it) {
          cout&lt;&lt;*mypointer&lt;&lt;endl;
  
          mypointer++;
      }
  
      return 0;
  }
  </code></pre>