what is the syntax for dynamically allocating a 2d array. My 2d array has large dimensions and so have to be dynamically allocated.
How do I do this?Code:
// I want double array
// so I did this, which does not work
double * array;
array = malloc(sizeof(double) * 5000 * 5000)