The elements are store at contiguous memory locations in C++
#include <iostream>
using namespace std;
int main()
{
int array[5], i;
cout << "Size of integer in this compiler is "
<< sizeof(int) << "\n";
for (i = 0; i < 5; i++)
cout << "Address array[" << i << "] is " << &array[i]
<< "\n";
return 0;
}