#include<stdio.h>
int main()
{
int a = 10;
int b = 10;
int** pp = (int**)calloc(sizeof(int*),a );
for (int i = 0; i < b; i++)
{
pp[i] = (int*)malloc(4, b);
}
for (int p = 0; p < a; p++)
{
for (int i = 0; i < b; i++)
{
*(*(pp + i) + p) = p * 10 + i;
printf("%-3d", *(*(pp + i) + p));
}
printf("\n");
}
for (int i = 0; i < a; i++)
{
free(pp[i]);
pp[i] = NULL;
}
return 0;