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, 54, 2131, 231, 3231 }; // Accesssing element
cout << "First element is:" << arr[0]; Arrays can be nested inside each other to create multidimensional arrays.