I have already seen :
How do I declare a 2d array in C++ using new?
But none of the answer seems to answer the question "How to declare a ** 2D array using new ** ?"
All the answers seems to show alternatives either by declaring array of pointers or by declaring row*column sized single dimensional array and then using row, column calculations explicitly.
But is there any way to directly allocate a 2D array in the heap in c++ just in the same way we do in the stack?
Example :
int stackarray[3][2];
//Is there some equivalent to above?? Like :
= new int[3][2];