Question: Don't understand how to even start this, help please There are several bitwise operators to help manipulate bits: & - Operates on the corresponding bits
Don't understand how to even start this, help please
There are several bitwise operators to help manipulate bits:
& - Operates on the corresponding bits of two strings of bits. The result is a 1 if both bits were 1, 0 if not.
| - Operates on the corresponding bits of two strings of bits. The result is a 1 if either bit was 1, 0 if not.
^ - Operates on the corresponding bits of two strings of bits. The result is a 1 if only one bit was 1, 0 if not.
>> (number) - Operates on one string of bits. Shifts all bits to the right equivalent to the number provided.
~ - Operates on one string of bits. Inverses all of the bits.
Consider variable string1 = 0x12345678 and variable mask = 0xF
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
