AI Features

2D Dynamic Array with Fixed Column Sizes

Understand about the creation of dynamic arrays with fixed column sizes.

Problem

Write a program that dynamically allocates a 2D integer array of given rows and columns. Populate the array with random numbers. Eliminate the array from memory once its usage is over.

Sample runs

...
Ask