What does this mean????

In my c++ book it says the following:

When you are defining a multidimensional array as a parameter, you can also omit the first dimension value. Of course, the function needs some way of knowing the extent of the first dimension. For example, you could write this:

double yield(double beans[][4], int index);

Here, the second parameter provides the necessary information about the first dimension. The function can operate with a two-dimensional array, with the value for the first dimension specified by the second argument to the function and with the second dimension fixed at 4.

How does the second parameter tell the compiler about the first dimension of the array?

I am a bit confused, could someone help please?

Topic archived. No new replies allowed.