M
can anyone tell me how to implement the function to calculate power of 2 with the help of bitwise operations.
2<<(n-1)
[B](2 squared)[/B]
2<<1
4
[B](2 cubed)[/B]
2<<2
8
[B](2^4)[/B]
2<<3
16
[B](2^1)[/B]
2<<0
2
[B](2^11)[/B]
2<<10
2048