Hello,I’m sorry for being some kind of impolite because of my poor language skill. I’m a novice of English, surfing in the forum for improving my communication skill. And after reading your post, I think you have successfully completed the experiment successfully, but still have some questions, that are just for curiosity.
Your question is a very basic knowledge of programming, and you can find your answer easily through Wiki or any programming tutorial.
Please refer to this link:
https://en.wikipedia.org/wiki/Data_type
Specifically, Hex and Decimal are just different representations of the same values, and they are eventually translated into the same 0 and 1 in memory by the compiler.
For example, following two line of code does the same thing.
</s>unsigned char msg[8] = {0x5, 0x29, 0x0, 0xD8, 0xD, 0xB0, 0x85, 0x79}; <e>
</s>unsigned char msg[8] = {5, 41, 0, 216, 13, 176, 133, 121};<e>
They all create a section of memory with the same content as:
I hope my answer will help you.
Best regards,