n<<x means shift the bits x times the left. Effectly creating a number that is 2 to the x power times bigger -- unless you run into overflow or your using signed integers.
n>>x means shift the bits x time to the right. Effectly deviding by 2 to the power x. Again, be aware that it shifts in zeros, so if you're using a signed int you can get odd results (negitive numbers become positive).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.