bit manipulation problems. 2A. Write the definition for a function with one unsi
ID: 3644665 • Letter: B
Question
bit manipulation problems.2A. Write the definition for a function with one unsigned arg n that returns an unsigned. The return value is the result of taking n, flipping bits 0-3 inclusive, turning on bits 4-7 inclusive, turning off bits 8-11 inclusive, and swapping the highest-order byte with the second-highest-order byte. For instance, if the bits of n were
00111010 10101010 10110101 01010111
then the bits of the return value would be
10101010 00111010 10110000 11111000
2B. Write a definition for a function named circularShift with two args: an unsigned n and an int numberBits. In a circular shift, when a bit is shifted out of one end of a number, that same bit is shifted in at the other end. C and C++ don