prototyping (oh no! not again??)
John Gordon
gordon at osiris.cso.uiuc.edu
Tue Nov 27 11:18:13 AEST 1990
Given that you are passing an n-dimensional array to a function, you
*MUST* explicitly provide at least n-1 of the dimensions in the argument
declaration.
For example:
if my_array is a 4-dimensional array, you *must* explicitly
provide at least 3 of the dimensions when you pass my_array to a function.
main()
{
int my_array[6][5][4][3];
.
.
.
}
function_one(int array[6][5][4][])
{
.
.
.
}
Note: There is a rule that governs which dimension may be left out; I
think it is one of the end ones, but I am not sure which one.
---
John Gordon
Internet: gordon at osiris.cso.uiuc.edu #include <disclaimer.h>
gordon at cerl.cecer.army.mil #include <clever_saying.h>
More information about the Comp.lang.c
mailing list