Question: Given a variable num1, perform each of the following operations. Show all 8 bits positions in the masks. A. Clear bits 5 and 6 .
Given a variable num1, perform each of the following operations. Show all 8 bits positions in the masks.
A. Clear bits 5 and 6 .
B. Set bits 0 and 1 .
C. Toggle bits 2, 5, and 7.
D. Shift to the left 2 bits
E. Shift logically to the right 3 bits.
Step by Step Solution
3.48 Rating (151 Votes )
There are 3 Steps involved in it
Sure first lets clarify that bits are often indexed starting from 0 and positions go from right to l... View full answer
Get step-by-step solutions from verified subject matter experts
