Look into what it takes to latch a 24 bit hardware register and write a 32 bit integer to it.
ETA: I forgot to mention endianess. But that is a problem in most other languages too and many programmers are already aware of it. But I also forgot to mention how the C compiler optimizes differently for different targets and how those optimizations sometimes break things all by their lonesome.