hello, this is sort of related to my recent post, which was solved thanks to you guys.
i had to take out the use of pointers.
Question now is:
"Is it possible to use pointers to pass multi-dimensional arrays through routines?"
eg.
CASE 1: This works
- Passing the multi-d array as a non-pointer
_______________________________
int main( void )
{
byte set[10][15];
func( set );
}
byte func( rule[][15] )
{
...
}
_______________________________
CASE 2: This doesn't work
- Trying to pass the multi-d array as a pointer
_______________________________
int main( void )
{
byte set[10][15];
func( set );
}
byte func( *rule[][15] ) // Notice the extra *
{
...
}
_______________________________
Is it possible to pass them through as a pointer?