Rotating an Array in C

Write a function that takes an array of integers and returns that array rotated by N positions.

For example, if N=2, given the input array [1, 2, 3, 4, 5, 6] the function should return [5, 6, 1, 2, 3, 4]

Got What it Takes? Test Drive Your Solution in C

Your code goes here...

Compile and Run

...output appears here!