Challenge: Turn On the 3rd and 5th Bits

Apply what you’ve learned about bitwise operators in the coding exercises in this lesson.

Problem statement

In this challenge, you have to implement the onBits function.

short unsigned int onBits(short unsigned int num);

Get hands-on with 1400+ tech skills courses.