Does someone know how I can use dynamically allocated multi-dimensional arrays using C? Is that possible?
// use new instead of malloc as using malloc leads to memory leaks `enter code here
int **adj_list = new int*[rowsize]; for(int i = 0; i < rowsize; ++i) { adj_list[i] = new int[colsize]; }