Write a C Program to rorate an 1-d array by a specified position