Challenge: Set Integer Bytes
Explore how to manipulate memory by reversing the bytes of an unsigned integer in place. Understand hexadecimal notation for bytes, and practice swapping byte pairs using pointers for effective memory management.
We'll cover the following...
We'll cover the following...
The reverseBytes function
The input is an unsigned integer, and you must reverse the order of its bytes.
To understand this, let’s assume the input is in hex. The beauty of the hexadecimal system is that we can view the bytes individually as ...