So I just finished reading the bitwise operators tutorial. I read that using the leftshift operators, one can raise a number to a power.
In my code I've done this:Code:[variable]<<[number of places]
5 to the power of 2 is 5*5 which is 25 but the result is 20. Any reason why? Is there something I'm missing?Code:printf("%d", 5<<2);