C – What is this syntax about?

It shifts the bits in the integer 1 var positions to the left. So in effect it calculates 2 to the power of var.

See the article on bit shifts on wikipedia.

Leave a Comment