I am trying to Create a 2-D integer Array on Heap in C++. I mistakenly did this:
int** a = new int*[5][6];
The IDE doesn't show any error but while compiling I get the below error:
error: cannot convert 'int* (*)[6]' to 'int**' in initialization
I have found efficient ways to create a 2-D array but I am just curious what exactly is happening above and what does the error mean?