Is there any way to malloc a large array, but refer to it with 2D syntax? I want something like:
int *memory = (int *)malloc(sizeof(int)*400*200); int MAGICV
int** memory = malloc(sizeof(*memory)*400); for (int i=0 ; i < 400 ; i++) { memory[i] = malloc(sizeof(int)*200); }