0
What is this: cout << (y>>2)?
2 Respuestas
+ 7
>> 2 is a bitwise right shift by 2 positions. It's effectively the same as an integer division by 4:
0b00010001 (17)
>> 1:
0b00001000 (8, trailing -1 is lost)
>> 1:
0b00000100 (4)
0
thanks Anna.
this code is a good explain too.
https://code.sololearn.com/c3btxo5900gg/?ref=app