Are there other ways of passing array in a function?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8767166/passing-2d-array-to-function">passing 2D array to function</a>  </p>
</blockquote>



<p>My question is related to passing an array as a C++ function argument. Let me show the example first:</p>

<pre><code>void fun(double (*projective)[3])
{
    for(int i=0; i&lt;3; i++)
        for(int j=0; j&lt;3; j++)
        {
            projective[i][j]= i*100+j;
        }
}

int main()
{
    double projective[3][3];     

    fun(projective);
    for(int i=0; i&lt;3; i++)
    {
        cout&lt;&lt;endl;
        for(int j=0; j&lt;3; j++)
            cout&lt;&lt;projective[i][j]&lt;&lt;"   ";
    }


    return 0;
}
</code></pre>

<p>In the example, the passing argument for <code>fun</code> is an array, and I was wondering whether there are other ways of passing this argument. Thanks!</p>
