Solution Found!
Find the bitwise OR, bitwise AND, and bitwise XOR of each
Chapter 1, Problem 43E(choose chapter or problem)
QUESTION:
Find the bitwise OR, bitwise AND, and bitwise XOR of each of these pairs of bit strings.
Questions & Answers
QUESTION:
Find the bitwise OR, bitwise AND, and bitwise XOR of each of these pairs of bit strings.
ANSWER:Solution:Step1Given thatBitwise pair of bit string.Step2We have to find the bitwise OR, bitwise AND, and bitwise XOR of each of these pairs of bit strings.Step3a. 1011110, 0100001Bitwise OR 1011110 0100001 -------------------- 1111111Bitwise AND 1011110 0100001 -------------------- 0000000Bitwise XOR 1011110 0100001 -------------------- 1111111Therefore, the bitwise OR is 1111111, bitwise AND is 0000000, and bitwise XOR is 1111111.Step4b. 1111 0000, 1010 1010Bitwise OR 1111 000