How can you preserve array bound values and use them in a function declaration?
<p>Suppose I use main() to read from a file and occupy a 2D array <code>int arr[S1][S2]</code> where <code>S1</code> and <code>S2</code> are determined from the file.  If I wanted to pass this array into a function, how can I write the multidimensional array as a function parameter with the correct bounds <code>S1</code> and <code>S2</code>?</p>

<pre><code>int some_function(int arr_copy[S1][S2], ...);

int main()
{
/* read file and occupy arr[S1][S2] */
}
</code></pre>

<p>Obviously the above is a problem because <code>S1</code> and <code>S2</code> are undefined.</p>
