Pass in part of an array as function argument
<p>I have an array <code>int arr[5] = {10, 2, 3, 5, 1}</code>, and I want to pass in the last 4 elements (basically from index 1 to index4) into an argument as an array (so: <code>[2, 3, 5, 1]</code>). Is there a way to do this very simply (like how in Ruby you would be able to do arr[1..4]), or would I have to use a for loop?</p>