Question: C programming using left/right shifts if needed, but no arrays Combine bits from two integers x and y. Assume both are unsigned integers (data type

C programming using left/right shifts if needed, but no arrays
Combine bits from two integers x and y. Assume both are unsigned integers (data type is unsigned int x, y). The C function should return an unsigned int as well as an answer. Example: x = 0x8 in hex and x = 1000 in binary y = 0x6 in hex and x = 0110 in binary z is the answer after combining bits from x and y. 1 0 0 0 0 1 1 0 Z 0 1 1 0 1 0 0 0 Combine bits from two integers x and y. Assume both are unsigned integers (data type is unsigned int x, y). The C function should return an unsigned int as well as an answer. Example: x = 0x8 in hex and x = 1000 in binary y = 0x6 in hex and x = 0110 in binary z is the answer after combining bits from x and y. 1 0 0 0 0 1 1 0 Z 0 1 1 0 1 0 0 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
