mathangi
asked on
Bitwise operations in C
I need to set a 32bit value using C, with different bits having different values The format would be something like
bit 0-7 - set to 0xff
bit 8-15 - set to 0xad
bit 15-17 - set to 0x0
bit 18-31 - set to 0x5b
How would I accomplish this using C?
bit 0-7 - set to 0xff
bit 8-15 - set to 0xad
bit 15-17 - set to 0x0
bit 18-31 - set to 0x5b
How would I accomplish this using C?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.