
Matthew W. answered 05/30/23
Computer Science Graduate with a passion for Mathematics
131 base 10 in binary will be: 10000011, so as an unsigned 8-bit it will be:10000011
x<<4 shifts x over 4 times to the left
The first shift will give: 00000110 (cutting off the first 1 because we only have 8-bits)
The second will give: 00001100
The third will give: 00011000
The fourth will give: 00110000
Converting back to base 10 gives us 48.
David W.
10000011 << 4 = 00110000 ... This is shift left FOUR bits, not multiply by 4.05/31/23