#include <iostream>

#include <vector>

int main()
{
  std::vector<int> arr = {1,2,3,4,5,6};

  for(int i = 0; i < 6; ++i) {
    std::cout << "address of i-th element : " << &(*(arr.begin() + i)) << std::endl;
  }

  // This might work, but DO NOT use it. UNDEFINED BEHAVIOR since end() cannot be dereferenced.
  std::cout << "address of end() element : " << &(*arr.end()) << std::endl;
}
