Arrays

An array is a finite collection of similar elements stored in adjacent memory locations. The simplest form of array is a one-dimensional array that can be defined as a finite ordered set of similar type of data.

Unlike Physics, we could have multidimensional arrays having more than 4 dimensions. It is difficult to visualize even a 4-dimensional array. But it is as simple as this:

arr[10][10][20][20];

Leave a Reply

Your email address will not be published.