Question: Using C syntax write an expression that achieves each of the following. Assume that the unsigned char A = 0x8A. Set bits 3 and
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.
Step by Step Solution
There are 3 Steps involved in it
Given that unsigned char A 0x8A lets write C syntax expressions to achieve each of the sp... View full answer
Get step-by-step solutions from verified subject matter experts
