I'm looking for an algorithm that is capable of shifting all objects within an array n places to the left and/or right. For instance:
1 2
int Array_A[] = {1, 2, 3, 4, 5, 0, 0};
int Array_B[] = {0, 0, 1, 2, 3, 4, 5};
Are there any possibilities? If not, how could I implement one? I've been trying to implement my own, but it seems the pointers always end up in the wrong place.