I am trying to make 2x2 array, initialize it to 0, and pass it to functions.
I have tried initializing it with
int array[2][2] = {0}
but only the first 5 values come out as 0.
A bigger problem for me is passing the array to a function.
A 2 dimensional array is a pointer to pointers right? So I should be able to pass it as;
function(**array);
Is this correct?
When I try to access this array in the function can I access it in the format of
void function (int **array){
array[0][2] = choice
}
as this does not work and I assume somewhere I have to define the size of the array.
Thanks.