Im currently studying how to manipulate bits. Im getting kinda confused.
if i have
this above works fine returning it back to 64.Code:
char i = 64 << 1; // left shift bits one pos to the left
i >>= 1; // shift back 1 pos to the right, returns to original value 64
but if the character exceeds 64 it wont go back to its original value.
And it also fills the 0's(or should be blanks( 0's ) ) with 1's whenever i right shift these over 64 values.Code:
char i = 66 << 1; // left shift bits one pos to the left
i >>= 1; // doesnt go back to 64