title: Copying a subset of an array into another array / array slicing in C
body: <p>In C, is there any built-in array slicing mechanism?</p>
  
  <p>Like in Matlab for example,
  A(1:4)</p>
  
  <p>would produce =</p>
  
  <pre><code> 1     1     1     1
  </code></pre>
  
  <p>How can I achieve this in C?</p>
  
  <p>I tried looking, but the closest I could find is this: <a href="http://cboard.cprogramming.com/c-programming/95772-how-do-array-subsets.html" rel="noreferrer">http://cboard.cprogramming.com/c-programming/95772-how-do-array-subsets.html</a></p>
  
  <p>subsetArray = &amp;bigArray[someIndex]</p>
  
  <p>But this does not exactly return the sliced array, instead pointer to the first element of the sliced array...</p>
  
  <p>Many thanks</p>