how can i make a swap function which reverses the hex number for example:
input :0x 12 34 51 38
output :0x 38 51 34 12
i can swap numbers 2 at a time but problem is with the presence of 0x..
thanks !!
Last edited on
You guys are helpful and all, but don't you think that it would be better not to just hand out the code and help the OP learn how to do it himself?