Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Define a function to loop through each element of a bunch of integer arrays and shift them by one bit before returning
Define a function to loop through each element of a bunch of integer arrays and shift them by one bit before returning

//n is the number of array elements

void move(int a[],int n)

{

int i ,k=a[0],t;

for(i=1;i

{

t=a[i] ;

a[i]=k;

k=t;

}

a[0]=k;

p>

for(i=0;i

{

printf("%4d",a[i]);

< p> }

}