Disruptive
Programmer
Peraps this one is obvious. I have te following and wish to create a pointer to point at a two dimensional array which is declared as below. I then wish to send this function in the following way to a function. Pointer asignment does not work.
I have:
void f1(int ***ptrCell)
{
(*ptrCell)[0][1] = 7777;
}
int Cell[27][2];
int **ptrCell;
ptrCell = &Cell;
f1(&ptrCell);
I have:
void f1(int ***ptrCell)
{
(*ptrCell)[0][1] = 7777;
}
int Cell[27][2];
int **ptrCell;
ptrCell = &Cell;
f1(&ptrCell);