Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void move_left(int *array, int length, int places)
- {
- for(int i = 0; i < length - places; i++) {
- array[i] = array[i + places];
- }
- }
- int main()
- {
- int niz[5] = {1, 2, 3, 4, 5};
- move_left(niz, 5, 2);
- return 0;
- }
Add Comment
Please, Sign In to add comment