Check if the i-th bit is set or not - Tutorial
Blog
Discussion