shifting an array in C

Hi,

Im trying to figure out a way to shift an array on integers x number of steps.

for example, shifting the array,
Code:
array[] = { 0,1,2,3,4,5,6,7,8,9 }
one step would result in:
Code:
array[] = { 9,0,1,2,3,4,5,6,7,8 }

Any ideas?
 
Back
Top