// pass_the_parcel.c // // Written by YOUR-NAME (YOUR-ZID) // on TODAYS-DATE // // Passes each gift one position to the right around a circle. #include #define SIZE 5 // Each person passes their gift to the person on their right. // The gift at the end of the array wraps around to the front. // The array is modified in place. // DO NOT CHANGE THE FUNCTION DECLARATION void pass_the_parcel(int gifts[SIZE]) { // WRITE YOUR CODE HERE! } // This is a simple main function which could be used // to test your pass_the_parcel function. // Only your pass_the_parcel function will be marked. int main(void) { // This array should become {5, 1, 2, 3, 4} // after being passed to the pass_the_parcel function int test_gifts[SIZE] = {1, 2, 3, 4, 5}; // DO NOT ADD YOUR FUNCTIONALITY/LOGIC IN MAIN // IT WILL NOT BE MARKED pass_the_parcel(test_gifts); for (int i = 0; i < SIZE; i++) { printf("%d ", test_gifts[i]); } printf("\n"); return 0; }