#include <iostream>
#include <stdio.h>
#include <vector>
using namespace std;
int main()
{
vector<int> vint_vector(10,99);
vint_vector[0] = 1;
vint_vector[1] = 2;
vint_vector[2] = 3;
vint_vector[3] = 4;
cout << "BEGIN = " << &vint_vector.begin() << endl; //---> prints a wrong address
printf("BEGIN = %p \n\r",vint_vector.begin());
for (int i = 0; i <= 10; i++)
{
cout << "i = " << i << " direccion vint_vector[i] = " << &vint_vector[i] << endl;
}
printf("END = %p \n\r", vint_vector.end());
cout << "END = " << &vint_vector.end() << endl; //---> prints a wrong address
return 0;
}