title: Best method to create a sub array from an array in C
body: <p>I have an array say <code>a[3]={1,2,5}</code> . I have to create another array <code>a2[2]={2,5}</code>. </p>
  
  <p>What I have tried is to just create a new array <code>a2[]</code> and just copy all the elements from the required position range.</p>
  
  <p>Is there any other method to accomplish this in C?. </p>