i have a 2d array in 1 source file, and i want to pass it to a function in another file.
heres the function i got:
heres how i call it:Code:void ProcessArray(char **pArray) { pArray[0][0] = 'a'; }
i know its a simple question but this is pretty much my only problem with pointers.Code:char array[50][50]; ProcessArray(&array);
i even tried:
Code:void ProcessArray(char ***pArray) { *pArray[0][0] = 'a'; }Code:char array[50][50]; ProcessArray((char ***)&array);