I would like to have a function which does the following:
int doFunction(int* nIndex)
{
//nIndex is a 2-D array of any size.
// I would like to fill this array inside this function.
//Eg: in nIndex[2][3], i would like to put 5.
}
int result;
int myIndex[5][6];
result = doFunction(myIndex);
could someone please help me with two things: 1. is the syntax above correct for function definition requiring a 2-d array of any size? 2. is the syntax ok for when i pass myIndex into the function? 3. How to i fill the array in the function, or how do i access its fields?
thanks.