Topic: Bit Manipulation Problem / Level: intermediate

Problem: Write a program to create a mask that has the first k bits set.

Run the code to see the output here...