0

Why this code showing this result?

Confusing https://code.sololearn.com/cTKq5f4w7ard/?ref=app

24th Jul 2020, 9:34 AM
Raju Baghel
Raju Baghel - avatar
2 odpowiedzi
+ 9
24th Jul 2020, 9:44 AM
Simba
Simba - avatar
+ 5
That's a bitwise shift operator, in this case it shifts binary 2 digits to the left: 5 in binary = 00000101 after shifting those ones to the left: 00000101 --> 00010100 and 00010100 in numeral system is 20
24th Jul 2020, 9:41 AM
Bagon
Bagon - avatar