-3
I need to create two functions
One receives an integer value and returns another one containing only the 8 bits of the lowest order of the original value, with the remaining bits set to zero.
The other receives an integer value and returns another one containing only the 8 bits of higher order of the original value, with the other bits set to zero.
How could I possibly do that? I had some ideas, but I didn’t come to any conclusions that worked, thanks in advance.
See if this helps: https://answall.com/q/201392/101. Here: https://answall.com/q/190575/101
– Maniero
It would be good [Dit] and describe at least what you tried and what difficulty you found, so it gives at least to have an idea of what you know and what you need to know to arrive at the intended result. Posts that give the impression of "do everything for me" are usually not well accepted, even if it is unintentional.
– Bacco
Thanks for the attention Maniero and Bacco, thanks for the tip,fortunately the friend replied,I will try to be careful with this in the next questions,thanks =D
– Joao Goulart