...

/

Challenge: Turn On the 3rd and 5th Bits

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);
...
Access this course and 1400+ top-rated courses and projects.