Photo by Zbynek Burival on Unsplash

An array takes a fixed chunk of memory and divides it into equal parts. These parts are accessed using indices.

All the elements stored inside an array have the same datatype.

These elements are accessed using their respective indices.

// Array in C++   
int arr[5] = { 1…

--

--