I was trying to find a way to allocate a single block of memory, but use multi-dimensional syntax, and I found the exact thing I was looking for on SO.
malloc in C, but use multi-dimensional array syntax
But after cut/pasting the code there:
int (*MAGICVAR)[200] = malloc(400 * sizeof *MAGICVAR);
MAGICVAR[20][10] = 3;
This error message pops up: "An array of type void * cannot be used to initialize an entity of type int(*)[200]" And it didn't help to cast the malloc to "int *" or "int **"
I'm using vs2010.