When a and b have the following binary values fill in the re

When a and b have the following binary values, fill in the resulting valuesfor the operations in the following table ( be sure to specify all 8 bits of each result)

a=01110010 b=01010111

Operation Value
~a
a & b
a | b
a ^ b
b ^ b
a || (b ^ b)
a && ~a
!a
b && !b
a << 4

Solution

~a = 10001101

a & b = 01010010

a | b = 01110111

a ^b = 00100101

b ^ b = 00000000

a || (b^b) = 01110010

a && ~a = 01110010

!a = 10001101

b && !b = 01010111

a<<4 =11100100

When a and b have the following binary values, fill in the resulting valuesfor the operations in the following table ( be sure to specify all 8 bits of each res

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site