refroidPtr->temp_airPtr = (int *) calloc(refroidPtr->num_columns, sizeof (int));
this is my call to calloc, it creates an array of dimensions refroidPtr->num_columns in the heap where the adresse of the first cell is temp_airPtr.
now I want to create a matrix in the heap, how do I do this?
can i do:
pointer = (int *) calloc(x, y, sizeof (int))?
would that create an array of dimensions [x][y] in the heap?