Can't convert std::array to int?
<p>I am just learning c++ and am attempting to understand arrays.. So forgive my ignorance on what's wrong here.</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt;
#include &lt;array&gt;
using namespace std;

void readArray(int *readfile, int ArraySize){
    int Interator;
    for(Interator = 1; Interator &lt; ArraySize; Interator++){
        cout &lt;&lt; " " &lt;&lt; readfile[Interator];
    }
}

int main(){
    std::array&lt;int, 5&gt; array2={{1, 2, 3, 4, 5}};
    readArray(array2, array2.end());
}
</code></pre>

<blockquote>
  <p>Error: Can't Convert 'std::array' to 'int*' for arg '1'to void 'readArray'</p>
</blockquote>

<p>How would I fix this?</p>