shric 104 Newbie Poster

This has the pungeant stench of homework, so I won't just do it for you.

Have you googled at all for C bit manipulation, or bitwise operations?

Hint: You will need to mask away the bits that you are not concerned about (the lower bits), so what mask would you use, and what bitwise operator?