Just something to think about ... ;-)
Try this:
#include <stdio.h>
#include <stdlib.h>
void print2d(int **,int,int);
int ** resize(int **,int,int);
void free2d(int **,int);
int main()
{
int i = 0,
j = 0;
int **array,
row = 5,
col = 5,
prow = row + 4,
pcol = col + 1;
/*...