Challenge: Turn On the 3rd and 5th Bits
Apply what you’ve learned about bitwise operators in the coding exercises in this lesson.
We'll cover the following
Problem statement
In this challenge, you have to implement the onBits
function.
short unsigned int onBits(short unsigned int num);
Get hands-on with 1200+ tech skills courses.