You can use something like this:
int *array;
array[(row * n) + col] = x
While n is the number of elements, row the row and col the column. To make it more convenient, you can use this makro:
int *array;
#define M(row,col) array[(row * n) + col]
M(1, 1) = x;
Of course you need to allocate the memory as one dimensional array. Like this:
int *array = (int *)malloc((rows * cols) * sizeof(int));