Hi,
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[5000][5000] // so I did this, which does not work double * array[5000]; array = malloc(sizeof(double) * 5000 * 5000)
Thanks,