1/9
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
The most appropriate operator to use to set target bits in a byte is
the bitwise OR.
The most appropriate operator to use to flip target bits in a byte is
the bitwise XOR.
The most appropriate operator to use to clear target bits in a byte is
the bitwise AND.
if you need to flip a bit's current state, you should use
the XOR operator.
When applying the bitwise AND on two bits, the only way to get a unique result is if
both bits are set.
If you perform a right shift on a signed positive int
You'll get zeros pushed into the MSBs.
If you perform a right shift on an unsigned int
you'll get zeros pushed into the MSBs.
If you perform a right shift on a signed negative int
the result depends on the compiler.
If you shift a 32-bit integer to the left by 32 positions,
the result is zero.
If you perform a left shift of one position on a signed positive int
you'll effectively multiply the value by two.