A two-dimensional array
In this approach, we simply dynamically allocate one huge block of memory of size M N and assign it to the pointer. Then we may index the 2D array using pointer arithmetic.
Vishalini.R Answered question June 27, 2023
Not a member yet? Register now
Are you a member? Login now