C Program to Cyclically Permute the Elements of an Array
Write a c program to cyclically permute the element of an array. (In right to left direction). Array should be taken as input from the user.
Explanation with example:
Let the user input for the array be: 4 5 6 7 8 10 11 34 56 1
The cyclic permutation operation on the array results in rotation of the array by one position in right to left direction.
Thus the array becomes: 5 6 7 8 10 11 34 56 1 4
i.e. the first element becomes the last element & the rest of the elements are shifted by one position.