Question: ( counting N from the least significant bit, starting from 0 ) , and for determining if all bits are on in a range of
counting from the least significant bit, starting from and for determining if all bits are on in a range of positions.
You must add those macros
A couple of sample runs are
Bitps
Enter an integer :
is odd
Enter an integer and a bit number :
has bit on
Enter an integer, start and end bit numbers :
has all those bits onEnter an integer :
is even
Enter an integer and a bit number :
has bit off
Enter an integer, start and end bit numbers :
has not all those bits on
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
