malloc
を使うcint i, row = 3, col = 4;
int **a = (int**)malloc(sizeof(int*) * row);
for (i=0; i<row; i++){
a[i] = (int*)malloc(sizeof(int) * col);
}
cfor(i=0; i<row; i++){
free(a[i]);
}
free(a);
$ gcc -o hello hello.c
$ ./hello
$ brew tap tcr/tcr
$ brew install clang-format