example–
if no=5;
binary (5)=101;
so right circular shift of the no is 101->110 decimal(110) =6
Tell me how rotate binary bit in right rotation as
@kailash_01
hello kailash.
a) you can store binary representation in some array or vector and then simply perform rotation on array .and then convert back to decimal (if required)
b) or u can try this approach -> https://www.geeksforgeeks.org/rotate-bits-of-an-integer/