what does this sybol means please? "<<" for example: if (1 << var)
I want the name of the thing to study. Thank you.
It shifts the bits in the integer 1 var positions to the left. So in effect it calculates 2 to the power of var.
var
See the article on bit shifts on wikipedia.
2.1m questions
2.1m answers
63 comments
56.6k users