some one can explain it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

some one can explain it?

num>>2

6th Jul 2020, 5:59 AM
Noria Soltani
Noria Soltani - avatar
3 Answers
+ 12
• Multiply by a power of 2 x = x << 1; // x = x * 2 x = x << 6; // x = x * 64 • Divide by a power of 2 x = x >> 1; // x = x / 2 x = x >> 3; // x = x / 8 • https://www.sololearn.com/learn/4087/?ref=apphttps://www.sololearn.com/learn/4086/?ref=apphttps://code.sololearn.com/cRRF49cpSTq7/?ref=apphttps://code.sololearn.com/cO9xpzBIiQLn/?ref=app
6th Jul 2020, 7:33 AM
Danijel Ivanović
Danijel Ivanović - avatar
+ 8
https://www.sololearn.com/learn/4086/?ref=app Signed Right shift operator (>>) –
6th Jul 2020, 6:03 AM
Nilesh
+ 4
thank you! it's good explanations.
6th Jul 2020, 6:08 AM
Noria Soltani
Noria Soltani - avatar