Question: Question 1: Bitwise Practice (6 pts) Write a single line of C code to implement each unsigned char chi of the following. given these declarations

Question 1: Bitwise Practice (6 pts) Write a single line of C code to implement each unsigned char chi of the following. given these declarations unsigned short n; Example: For ch, check if bit 0 is set to 1 if (ch &0x01) a. Set bits 6, 2, O of ch to 1, and preserve the remaining bits. b. For ch, check if any of bits 7, 3, 1, 0 are set to 1. c. For n, set bits 15, 9 to 1, clear bits 7, 3 to 0, toggle bits 11, 2, and preserve the remaining bits
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
