Guest User

Untitled

a guest
Dec 9th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. void move_left(int *array, int length, int places)
  2. {
  3. for(int i = 0; i < length - places; i++) {
  4. array[i] = array[i + places];
  5. }
  6. }
  7.  
  8. int main()
  9. {
  10. int niz[5] = {1, 2, 3, 4, 5};
  11. move_left(niz, 5, 2);
  12. return 0;
  13. }
Add Comment
Please, Sign In to add comment