title: How to write shift_elements function in C?
body: <p>I have this question in C language:</p>
  
  <blockquote>
    <p>Implement the function: <strong>shift_element(int * arr, int i)</strong>.</p>
  </blockquote>
  
  <p>The function will get a pointer (not necessarily the beginning of the array) and the function will move the <code>i</code> next values to the right. Note that the function assumes that there is memory for at least i+1 cells after the pointer of the array. </p>
  
  <p>Isn't it a swap function that I can use in Insertion sort? I don't understand the question properly. Thanks.</p>