Decimal to Binary Conversion - Bitwise Right shift Operator
It is a number system conversion from decimal value into binary bits is carried out using bitwise >> (right-shift) operator. The Right shift operator moves the bit position of a integer towards right direction. it removes bits from LSB (least significant bit) and add bits (0s) into MSB (most significant bit) and the number bits to remove and to add depends on a operand value next to the right shift operator. For example, the integer variable x=10 , move 1 bit using right-shift binary 8-bits x = 00001010 x = x >> 1 move 1 bit (remove one bit from LSB (0) and add one bit (0) into MSB binary 8-bits x = 00000101 and x's decimal value becomes 5. Decimal to binary conversion using Bitwise Right-shif...