Left and right shift operators (<< and >>) are already available in C++. However, I couldn't find out how I could perform circular shift or rotate operations.
How can operations like "Rotate Left" and "Rotate Right" be performed?
Rotating right twice here
Initial --> 1000 0011 0100 0010
should result in:
Final --> 1010 0000 1101 0000
An example would be helpful.