int x=-45. int y=x>>3 | SoloLearn: Learn to code for FREE!

0

int x=-45. int y=x>>3

i cant fo this bitwise operater

9/14/2017 3:14:47 PM

Soma Ghosh

2 Answers

New Answer

+2

45 =b101101 -45 =b11010011 check it by addition og 45 and -45 3 times shift right: there are only 1 on the left b11111010 b11111010 + 00000110 = 0 so b11111010 = -6

0