Dynamic Allocation Of 2D Array

When we write the statement int **arr = new int*[3]. Then, are the 3 pointers(arr[0], arr[1], arr[2]) that are created also stored in heap ?

Hi Prajwal, the answer is yes.

Hey Prajwal,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.