c - Correct way of passing 2 dimensional array into a function - Stack ... I have a 2-dimensional array and I am passing it into a function to carry out ... You should declare your function like this: void display(int p[][numCols]). This C FAQ ...