Inspired by this question. I created this function:
char** char2Da (int r, int c) { char (*p)[c] = malloc(sizeof(char[r][c])); // come code filling 2