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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!