error C2234: arrays of references are illegal
<p>I write a code like this:</p>

<pre><code> void Print(const int &amp; dataArray[], const int &amp; arraySize) {  // problem 
    for(int i = 0; i&lt;arraySize; i++) {
        cout &lt;&lt; dataArray[i] &lt;&lt; " ";
    }
    cout &lt;&lt; endl;
    }
</code></pre>

<p>in mian() function:</p>

<pre><code>`
int iArray[14] = { 7, 3, 32, 2, 55, 34, 6, 13, 29, 22, 11, 9, 1, 5 }; 
int numArrays = 14;
Print(iArray, numArrays);
....
`
</code></pre>

<p>the compiler says that arrays of references are illegal, why it is illegal ??
I see the &lt;effective c++&gt;, it says recommend we use the const and reference, I just try to implement it(I'm a beginner), I also want to know in the <code>void Print(const int dataArray[], const int &amp; arraySize)</code> parameter I use const, &amp; to qualify the arraySize, is it right?(or is it much better than int arraySize or const int arraySize?), I want also use const,&amp; to dataArray[], but I failed. </p>
