title: What is the best way to create a sub array from an exisiting array in C++?
body: <p>OK, I am trying to get a sub array from an existing array and I'm just not sure how to do it. In my example I have a very large array, but I want to create an array from the last 5 elements of the array.</p>
  
  <p>An example of what I am talking about would be:</p>
  
  <pre><code>int array1 = {1,2,3,...99,100};
  int array2[5] = array1+95;
  </code></pre>
  
  <p>I know this isn't correct, but I am having some trouble getting it right. I want to get the elements 96 through 100 in array1 and put them into array2 but I don't want to copy the arrays. I just want array2 to start at the 96 element such that array1[96] and array2[0] would be pointing to the same location.</p>