Using C syntax write an expression that achieves each of the following. Assume that the unsigned char
Question:
Using C syntax write an expression that achieves each of the following. Assume that the unsigned char A = 0x8A.
• Set bits 3 and 6 of A.
• Keep only the low nibble of A.
• Set unsigned char B to 100 if bit 3 of A is not set.
• Clear bit 1 of A.
• Toggle bits 4 and 5 of A.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: