Suppose I have an array
unsigned char arr[]= {0,1,2,3,4,5,6,7,8,9};
Is there a way to perform shift operation on them besides just copying them
If you want a circular shift of the elements:
std::rotate(&arr[0], &arr[1], &arr[10]);
... will do the trick. You'll need to #include the algorithm header.