title: using only part of an array
body: <p>I have a dynamically allocated array of float and I need to pass this array as an argument to three different functions but each function need to get a different range of the array. Is there some way I can send the array with elements 0 to 23 to one function, elements 24 to 38 to another, and elements 39 to 64 to a third function.</p>
  
  <p>In some languages(like python I think) you can do something like this:</p>
  
  <pre><code>somefunction(my_array[0:23]);
  somefunction(my_array[24:38]);
  somefunction(my_array[39:64]);
  </code></pre>
  
  <p>However I am using c++ and I am not aware of any way to do this in c++.</p>
  
  <p>Does anybody know how to do this?</p>
  
  <p>somefunction(); is a function from an API so I can not modify the arguments it takes.</p>