hi, this is probably a simple question but how would i send a multidimensional array called myArray[][] into a function...i understand how to do it if the array is like myOtherArray[]
i'd rather not have to change myArray[][] into myOtherArray[] since the double subscripts [][] are easy for me to work with than the single one []
this is basically my attempt at doing this:
Code:
void Tools(int myArray[][]);
int main()
{
int theArray[12][2];
for(k=0; k<12; k++)
{
for(i=0; i<2; i++)
{
theArray[k][i] = i+k;
}
}
Tools(theArray);
return 0;
}
void Tools(int myArray[][])
{
...
//stuff happens
...
}
thanks for all your help