
Constraints on Pointer Arithmetic Past an Array’s End
In Standard C and C++, the address of the first element past the end of an array can be used in pointer arithmetic. Thus, you can initialize a vector with the contents of a built-in array, like this: int arr[3] = {1, 2, 3}; vector vi ( arr, //address of