Question: Bit packing is a great way to store multiple small pieces of data efficiently. Write a function that takes two unsigned shorts and packs them
Bit packing is a great way to store multiple small pieces of data efficiently. Write a function that takes two unsigned shorts and packs them into an unsigned int given the function header below. The first argument should be in the two least significant bytes, the second is the two most significant bytes. unsigned int charPacking( unsigned short one, unsigned short two )
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
