I need some help with a pointer problem I'm facing. I have this:
int my_array[26][24]; /* An 2 dimensions array */
call_function(NEED_HELP_HERE);
call_function() requires an argument, an array. I need to pass my_array. However, I know that passing arrays in functions is memory consuming and not very clean. So, instead, I want to pass a pointer to the array.
So my question is how to declare the pointer to the array, how do I declare it?
void call_function(NEED_HELP_HERE)
{
/* This function receives a pointer to an array as argument */
}
The question is what to put in "NEED_HELP_HERE" places. My issue is that I don't know what type the pointer to the array of arrays is.
Thanks in advance!