Question: Task 4: In C++, a 2-D array could be declared on stack as well as on heap as follows: const int ROW_MAX = 5; const

Task 4: In C++, a 2-D array could be declared on stack as well as on heap as follows: const int ROW_MAX = 5; const int COL_MAX = 10; int arr_stack [ROW_MAX][COL_MAX]; int **arr_heap = new int*[ROW_MAX]; for (int row=0; row
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
