>>463
void rotate_array(int *x, int n)
{
 int last = x[n-1];
 int i;
 for(i = n - 1; i >= 1; i--)
   x[i] = x[i-1];
 x[0] = last;
}