+ 3

'>>','<<' What does it mean?

3rd May 2017, 1:30 PM
一剪闲愁
一剪闲愁 - avatar
3 Answers
+ 9
right shift and left shift operators(bitwiz se) in this case c++ and python is same😁😁 https://www.sololearn.com/discuss/345934/?ref=app
3rd May 2017, 1:36 PM
Nithiwat
Nithiwat - avatar
+ 5
there is this question in the challenges: the output of 5 >> 2 <<5. does it mean, that the binary 5 got shifted 2 to the left, then 5 to the right?
3rd Jun 2017, 2:07 PM
アーッChebu❗
アーッChebu❗ - avatar
+ 2
The process goes like this make sure you have knowledge about binary... eg: (3 << 2) then convert 3 to binary which is 0011 ..0000 0011<< 2 shift to the left by two ..0000 1100 output would be "1100" which is 12
3rd May 2017, 3:42 PM
Rydel Siono
Rydel Siono - avatar