Question: Bits positions are numbered from 7 ( most significant ) to 0 ( least significant ) . We can isolate bits using the AND operator
Bits positions are numbered from most significant to least significant We can isolate bits using the AND operator and a bit mask as shown in the C snippet below. You want to make this C statement detect if bit is set and ignore everything else in the byte. What value will you have for x Please provide a decimal result.
if PORTAIN & x
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
