二维数组初始化
设二维数组为arr[row][col];
int **arr=(int**)malloc(sizeof(int*)*(row));
然后给数组的每一行分配内存
for (int i = 0; i < row; i++)
arr[i] = (int *)malloc(col * sizeof(int));
赋值
for (int i = 0; i < row; i++)
for (int j = 0; j < col; j++)
arr[i][j] = 0;
如果要返回这个数组的returnSize和returnColumnSizes
*returnSize = row;
*returnColumnSizes = (int*)calloc(col,sizeof(int));
for(int i=0;i<row;i++)
(*returnColumnSizes)[i] = col;
(未完待续)