Question: Q 1 . Bitwise logical operations ( AND , OR , XOR ) can be used to set, clear, or invert bits in a number.
Q Bitwise logical operations AND OR XOR can be used to set, clear, or invert bits in a number. Explain how to do each of the following operations with a bitwise logical operation. For example: "bitwise AND with xmask value
A For an bit number, set the bits and leave the other bits unchanged.
B For a bit number, invert the top four bits of the number and leave the bottom four bits unchanged.
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
