Subject: sp3 simplification (This message is being sent to all CPSC 322 students) I have now been convinced that using the double pointer in deadlock unnecessarily muddies the water so I have changed the prototype in the assignment spec: int deadlock( int numres, // number of resource classes int numproc, // number of processes int *avltab, // pointer to the available table int *reqtab, // pointer to the requested table int *alloctab, // pointer to the allocated table int *numdead, // number of processes involved in deadlock int *deadtab) // id's of deadlocked processes { } The way to pass a pointer to the 2-D array without generating a warning is: int dummy( int *x) { printf("%d", *(x + 2)); return(0); } int tab[2][2] = {{1, 2,}, {3, 4}}; int main() { dummy(tab[0]); return(0); } The deadlock function could then access avltab[i][j] as: *(avltab + i * numres + j)